Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     // Move the Snake every 300ms
     InvokeRepeating("Move", 0, 0.3f);
     food.Generate();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     food.Generate();
     tail.Add(gameObject);
 }