Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (!GlobalStuff.getBaddie(pos))
     {
         //enabled = false;
         Destroy(this.gameObject);
     }
     if (GlobalStuff.getBaddie(pos))
     {
         WithInDistance();
     }
 }