void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player" && persistScript != null)
     {
         persistScript.pullValues();
     }
 }
Exemple #2
0
 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;
     }
 }