Beispiel #1
0
 void Start()
 {
     killplz = transform.Find("ObstacleTrigger").GetComponent <TrapTriggerKill> ();
     if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
     {
         overText.text  = "Touch";
         underText.text = "Touch";
     }
     overTimerText.text  = CanActivateWindow.ToString("0.0");
     underTimerText.text = CanActivateWindow.ToString("0.0");
     ActivateTimeClone   = CanActivateWindow;
 }
Beispiel #2
0
 public void ActivateTrigger(GameObject go)
 {
     for (int i = 0; i < ActivateZones.Count; i++)
     {
         print(go.name);
         print(ActivateZones [i].name);
         if (ActivateZones[i].gameObject.name == go.name)
         {
             TrapTriggerKill TTK = DeathZones [i].GetComponentInChildren <TrapTriggerKill> ();
             TTK.CanKill = false;
         }
     }
 }