예제 #1
0
 public void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         throw new System.Exception("More than one GeneticGame on Scene.");
     }
 }
예제 #2
0
 protected void Die()
 {
     Debug.Log(gameObject.name + " died\nscore: " + score);
     GeneticGame.DecreaseAliveCount();
 }