Пример #1
0
 public void init()
 {
     if (GameObject.FindGameObjectWithTag("Player") != null)
     {
         dilo = (Dillo)GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Dillo>();
     }
 }
Пример #2
0
 void teleport(Dillo dilo, Vector3 dst)
 {
     hasMoved[dst] = false;
     dilo.setPosition(dst + new Vector3(0, Dillo.DILO_INTERVAL, -1));
 }