Пример #1
0
        //Включить кнопки атак
        private void ActivateAttack(bool isRed)
        {
            Debug.Log($"AttackMenu.ActivateAttack({isRed})");
            switch (isRed)
            {
            case true:
                Debug.Log("Red cell is full. Attack is available");
                knightCombometer.Deactivate(true);
                knightCombometer.ActivateLight(true, true);
                break;

            case false:
                Debug.Log("Green cell is full. Attack is available");
                knightCombometer.Deactivate(false);
                knightCombometer.ActivateLight(false, true);
                break;
            }
            foreach (var attackButton in attackButtons)
            {
                if (attackButton.isRed == isRed)
                {
                    attackButton.Activate();
                }
            }
        }
Пример #2
0
 //Начать анимацию смерти
 protected override void StartDeathAnim()
 {
     combometer.ActivateLight(false, false);
     combometer.ActivateLight(true, false);
     base.StartDeathAnim();
 }