void Awake()
 {
     life         = settings.startLife;
     cannon.owner = this;
     Body         = GetComponent <Rigidbody>();
     PlayerInput  = GetComponent <PlayerInput>();
     PlayUI       = GetComponent <PlayerUI>();
     fsm          = new PlayerActionFSM(this);
     fsm.Push(new PlayerStartState(fsm));
 }
Esempio n. 2
0
 public PlayerLoseState(PlayerActionFSM fsm) : base(fsm)
 {
 }
Esempio n. 3
0
 public PlayerImpactState(PlayerActionFSM fsm, float time) : base(fsm)
 {
     endTime = Time.time + time;
 }
 public PlayerAimState(PlayerActionFSM fsm) : base(fsm)
 {
 }
Esempio n. 5
0
 public PlayerDashState(PlayerActionFSM fsm) : base(fsm)
 {
     endTime = Time.time + fsm.player.settings.dashTime;
 }
Esempio n. 6
0
 public PlayerStartState(PlayerActionFSM fsm) : base(fsm)
 {
 }
 public PlayerDeadState(PlayerActionFSM fsm) : base(fsm)
 {
 }