Esempio n. 1
0
 public void OnTriggerActivated(Collider other)
 {
     if (isActive && !running)
     {
         if (other.gameObject.layer == LayerMask.NameToLayer("Player"))
         {
             running = true;
             planetEventsManager.informEventActivated(identifyier);
             StartCutscene();
             if (endMode == EndMode.ByTime)
             {
                 StartCoroutine("checkTime");
             }
             ActivateTrigger();
         }
     }
 }