Пример #1
0
 private void ResolveStateChange(ShieldBoss boss)
 {
     state = boss.state;
     if (boss.targetBall != null)
     {
         pupilTarget = boss.targetBall.transform;
     }
 }
Пример #2
0
        private void ResolveStateChange(ShieldBoss boss)
        {
            switch (boss.state)
            {
            case State.Hurt:
                Hit();
                break;

            default:
                break;
            }
        }
Пример #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;
            }
        }