private void Start() { movementState = MovementState.Idle; previousMovementState = movementState; interactState = InteractState.Nothing; previousInteractState = interactState; body = GetComponent <Rigidbody>(); animBody = GetComponent <AnimatorController>(); moveStateParameters = new MovementStateParam(); moveStateCtrl = new MovementStateController(); interactStateParameter = new InteractStateParam(); InteractStateCtrl = new InteractStateController(); inputController = GetComponent <InputController>(); interactBehaviorCtrl = GetComponent <InteractBehavior>(); }
public FloatingState(MovementStateController stateController, Rigidbody rigidComp) { player = stateController; rigidbody = rigidComp; }
public StandardState(MovementStateController stateController, CharacterController charController) { player = stateController; controller = charController; }
public StandardStateRigidbody(MovementStateController stateController, Rigidbody rigidComp) { player = stateController; rigidbody = rigidComp; }