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>();
 }
示例#2
0
 public FloatingState(MovementStateController stateController, Rigidbody rigidComp)
 {
     player    = stateController;
     rigidbody = rigidComp;
 }
示例#3
0
 public StandardState(MovementStateController stateController, CharacterController charController)
 {
     player = stateController;
     controller = charController;
 }
 public StandardStateRigidbody(MovementStateController stateController, Rigidbody rigidComp)
 {
     player = stateController;
     rigidbody = rigidComp;
 }
示例#5
0
 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;
 }