コード例 #1
0
    public void Tick()
    {
        ac.Age++;

        Pregnancy--;

        if (UnityEngine.Random.value < DeathProbability)
        {
            if (this == null)
            {
                return;
            }
            ac.City.DropTrack(ac);
            wc.Clear(gameObject);
        }
    }
コード例 #2
0
 private void StartGame()
 {
     worldController.Clear();
     lblScore.Text       = worldController.GetCurrentScore().ToString();
     lblGameOver.Visible = false;
 }
コード例 #3
0
 public void OnClearLevelButtonPress()
 {
     worldController.Clear();
     levelName.text = string.Empty;
 }