Exemplo n.º 1
0
 private void ResolveStateChange(ShieldBoss boss)
 {
     state = boss.state;
     if (boss.targetBall != null)
     {
         pupilTarget = boss.targetBall.transform;
     }
 }
Exemplo n.º 2
0
        private void ResolveStateChange(ShieldBoss boss)
        {
            switch (boss.state)
            {
            case State.Hurt:
                Hit();
                break;

            default:
                break;
            }
        }
Exemplo n.º 3
0
        private void ResolveStateChange(ShieldBoss boss)
        {
            switch (boss.state)
            {
            case State.Annoyed:
                SetAnnoyedFace();
                break;

            case State.Hurt:
                SetHurtFace();
                break;

            case State.Happy:
                SetSurpriseHappyFace();
                break;

            case State.Angry:
                SetAngryFace();
                break;

            default:
                break;
            }
        }