예제 #1
0
    private void ChooseNewHand()
    {
        int chosenIndex = 0;

        if (boss_AI.CurrentPhase == Boss_AI.BossPhases.phase1)
        {
            chosenIndex = 1;
        }
        else if (boss_AI.CurrentPhase == Boss_AI.BossPhases.phase2)
        {
            chosenIndex = Mathf.RoundToInt(Random.Range(1, 3));
        }
        else if (boss_AI.CurrentPhase == Boss_AI.BossPhases.dead)
        {
            chosenIndex = 3;
        }

        if (chosenIndex == 1)
        {
            currentHand = BossHands.fist;
            changedHand.Invoke();
        }
        else if (chosenIndex == 2)
        {
            currentHand = BossHands.gun;
            changedHand.Invoke();
        }
        else if (chosenIndex == 3)
        {
            currentHand = BossHands.dead;
            changedHand.Invoke();
        }
        else
        {
            return;
        }
    }
예제 #2
0
 public void BecomeVulnerable()
 {
     currentHand = BossHands.vulnerable;
     StopAllCoroutines();
     changedHand.Invoke();
 }