Example #1
0
 protected override void PlayerTrigger(bool enter = true)
 {
     if (enter)
     {
         if (teleporting)
         {
             teleporting = false;
         }
         else
         {
             portals.OnPortal(this);
         }
     }
 }