示例#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
 });