Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     range  = new Vector3(0.5f, 0.5f, 0.5f);
     offset = new Vector3(0, 1, 0);
     delay  = false;
     mass   = 0;
     UIA    = door.GetComponent <UIAppear>() as UIAppear;
 }
Ejemplo n.º 2
0
 public GameObject getVictim()
 {
     foreach (GameObject victim in GameObject.FindGameObjectsWithTag("Victim"))
     {
         UIAppear UIAppear = victim.transform.Find("Radius").GetComponent <UIAppear>();
         if (UIAppear.active)
         {
             return(victim);
         }
     }
     return(null);
 }