Table of Contents

Class CharacterState

Namespace
VoxelPlayground.Gaming
Assembly
GamePlay.dll
public class CharacterState : State
Inheritance
object
CharacterState
Derived
Inherited Members

Fields

characterStateMachine

protected CharacterStateMachine characterStateMachine

Field Value

CharacterStateMachine

dynChangeHoldingItemScale

public static bool dynChangeHoldingItemScale

Field Value

bool

entityCharacter

protected EntityCharacter entityCharacter

Field Value

EntityCharacter

Methods

Attack()

public void Attack()

CarryItem(EntityAttachmentItem, bool, CarryHand)

public virtual void CarryItem(EntityAttachmentItem entityItem, bool isFirstPersonView = false, CarryHand hand = CarryHand.Right)

Parameters

entityItem EntityAttachmentItem
isFirstPersonView bool
hand CarryHand

CarryRigidbody(Collider, HandSide, Rigidbody, Vector3?, Vector3, bool)

public Joint CarryRigidbody(Collider collider, HandSide handSide = HandSide.Both, Rigidbody rigidbody = null, Vector3? gripPos = null, Vector3 handPosRelBody = default, bool useJointDataInfo = false)

Parameters

collider Collider
handSide HandSide
rigidbody Rigidbody
gripPos Vector3?
handPosRelBody Vector3
useJointDataInfo bool

Returns

Joint

Init(EntityCharacter, CharacterStateMachine)

public void Init(EntityCharacter entityCharacter, CharacterStateMachine characterStateMachine)

Parameters

entityCharacter EntityCharacter
characterStateMachine CharacterStateMachine

PutDownItem_FirstPersonView(HandSide)

public void PutDownItem_FirstPersonView(HandSide handSide = HandSide.Both)

Parameters

handSide HandSide

PutDownItem_ThirdPersonView(bool, bool)

public void PutDownItem_ThirdPersonView(bool throwForce = true, bool onlyLeft = false)

Parameters

throwForce bool
onlyLeft bool

StopAttack()

public void StopAttack()

Update(float)

public override void Update(float deltaTime)

Parameters

deltaTime float

UpdateReload(float)

public void UpdateReload(float deltaTime)

Parameters

deltaTime float