예제 #1
0
        public static void InvokePlayerLeave(ReferenceHub hub, string userId, GameObject obj)
        {
            OnPlayerLeave onPlayerLeave = PlayerLeaveEvent;

            if (onPlayerLeave == null)
            {
                return;
            }

            PlayerLeaveEvent ev = new PlayerLeaveEvent()
            {
                Player = hub
            };

            onPlayerLeave?.Invoke(ev);
        }
예제 #2
0
 public static void InvokePlayerLeave(ReferenceHub player) => PlayerLeaveEvent.InvokeSafely(new PlayerLeaveEvent()
 {
     Player = player
 });