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