private void CheckLife() { if (UIGame.TryUpdateLife()) { m_movement.RendererBehaviour.SpriteRenderer.enabled = true; m_isBlinking = false; } else { GameManager.OnGameOver(); } }
public override void DoImpact() { UIGame.UpdateScore((int)m_size); switch (m_size) { case AsteroidSize.Large: GameManager.CheckAsteroids(this, AsteroidSize.Medium); break; case AsteroidSize.Medium: GameManager.CheckAsteroids(this, AsteroidSize.Small); break; default: GameManager.CheckAsteroids(this, AsteroidSize.Null); break; } }
public InputTouchController() { UIGame.ShowTouchControls(); m_cooldownTime = Time.time; }
public static void OnGameOver() { Instance.CancelInvoke(); UIGame.ShowGameOver(); }