void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player" && persistScript != null) { persistScript.pullValues(); } }
void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player" && GameMasterObject.keyNumbers >= 3) { StartCoroutine(DisplayAndLoad(levelToLoad)); if (persistScript != null) { persistScript.pullValues(); } causeDD.hitPoints = 1000000; GameMasterObject.isFinalLevel = true; } }