Пример #1
0
 private void SetIdleState()
 {
     if (!sm.IsActualState <LaserEnemy_R_IdleState>())
     {
         sm.SetState <LaserEnemy_R_IdleState>();
     }
 }
    public void MakeAttack()
    {
        if (_sm.IsActualState <EnemyRangedMetheoriteSpawner_AttackState>())
        {
            return;
        }

        SetVelocity(transform.forward * 0);
        _sm.SetState <EnemyRangedMetheoriteSpawner_AttackState>();
    }