private void ExecuteGameOver() { _isAlreadyRotating = true; spritePool.ReturnRotatingParent(); gameOverMessage.Show(); Time.timeScale = 0; }
public override void Process() { if (World.Instance.ControlledCar.HealthPoints == 0 && !IsGameOver) { this.IsGameOver = true; var result = GameOverMessage.Show(null); result.ContinueWith(x => { this.IsGameOver = false; World.Instance.ControlledCar.Reset(); }); } }