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; }
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; } } }