Beispiel #1
0
 private void OnTriggerStay(Collider other)
 {
     if (other.CompareTag(snakeTailTag) && !ignoreSnakeTailCollision)
     {
         fruitSpawner.SpawnNewFruit(true);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Tutorial on first play has been completed so start spawning fruit.
 /// </summary>
 public void TutorialDone()
 {
     fruitSpawner.Init();
     fruitSpawner.SpawnNewFruit(false);
 }