Beispiel #1
0
 private static void ResetMetrics()
 {
     _damage        = 0;
     _health        = null;
     _lives         = null;
     _score         = 0;
     _state         = GameState.NotStarted;
     _levelProgress = null;
     NumericTicker.DisposeAllTickers();
 }
Beispiel #2
0
        private void NumericTicker_OnTickerCompleted(NumericTicker ticker)
        {
            switch (ticker.TickerName)
            {
            case BossCountDown:
                if (bossTickerText != null)
                {
                    StartCoroutine(TurnOffCountDown(1.2f));
                }
                break;

            default:
                break;
            }
        }
Beispiel #3
0
        private void NumericTicker_OnTickerTicked(NumericTicker ticker)
        {
            switch (ticker.TickerName)
            {
            case BossCountDown:
                if (bossTickerText != null)
                {
                    bossTickerText.gameObject.SetActive(true);
                    bossTickerText.text = string.Format("00:{0:00}", ticker.CurrentTick);
                }
                break;

            default:
                break;
            }
        }