Example #1
0
 public void Attack()
 {
     _fsm.RunState((int)GhostState.Attack);
     if (_fsm.GetCurrentState() == Moves)
     {
         _fsm.FinishState();
     }
 }
Example #2
0
    /* public void ApplyGravityScale () {
     *  _rigidbody.gravityScale = 10;
     * }*/

    public void ShieldAttack()
    {
        _fsm.RunState((int)StatsEnum.Shield_Attack);
        if (_fsm.GetCurrentState() == Moves)
        {
            _fsm.FinishState();
        }
    }