public void Tick() { ac.Age++; Pregnancy--; if (UnityEngine.Random.value < DeathProbability) { if (this == null) { return; } ac.City.DropTrack(ac); wc.Clear(gameObject); } }
private void StartGame() { worldController.Clear(); lblScore.Text = worldController.GetCurrentScore().ToString(); lblGameOver.Visible = false; }
public void OnClearLevelButtonPress() { worldController.Clear(); levelName.text = string.Empty; }