Пример #1
0
    void CancelBattle(BattleCancelledReason reason)
    {
        if (_battleCr != null)
        {
            StopCoroutine(_battleCr);
            _battleCr = null;
            Debug.Log($"<color=red>Battle canceled! ({reason})</color>");

            PlaySound(_Sounds.GameCancelled);
        }
        _team1.ExitBattle();
        _team2.ExitBattle();
    }