public static void InvokeScp106ContainEvent(GameObject player, ref bool allow) { if (Scp106ContainEvent == null) { return; } Scp106ContainEvent ev = new Scp106ContainEvent { Player = player.GetPlayer(), Allow = allow }; Scp106ContainEvent.InvokeSafely(ev); allow = ev.Allow; }
public static void InvokeScp106ContainEvent(GameObject player, ref bool allow) { Scp106Contain scp106Contain = Scp106ContainEvent; if (scp106Contain == null) { return; } Scp106ContainEvent ev = new Scp106ContainEvent { Player = Player.GetPlayer(player), Allow = allow }; scp106Contain?.Invoke(ev); allow = ev.Allow; }