private static void ResetMetrics() { _damage = 0; _health = null; _lives = null; _score = 0; _state = GameState.NotStarted; _levelProgress = null; NumericTicker.DisposeAllTickers(); }
private void NumericTicker_OnTickerCompleted(NumericTicker ticker) { switch (ticker.TickerName) { case BossCountDown: if (bossTickerText != null) { StartCoroutine(TurnOffCountDown(1.2f)); } break; default: break; } }
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; } }