示例#1
0
 public override void ObjectEnterTrigger(InteractableElement ie, Object o)
 {
     if (ie.GetType() != typeof(Lever) && o is Player)
     {
         Player p = o as Player;
         mgr.RemovePlayer(p.Username);
     }
 }
示例#2
0
 public override void OnInteraction(InteractableElement ie, Player p)
 {
     if (ie.GetType() == typeof(Lever))
     {
         if (ie.name == "LeverStart" && PlayerMgr.Instance().Players.Length >= 2)
         {
             loader.LoadScene("Scene/EnigmaSelect");
         }
         if (ie.name == "LeverTest")
         {
             loader.LoadScene("Scene/Test");
         }
     }
 }