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); } }
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"); } } }