예제 #1
0
 public override int kickPlayerNotify(MsKickPlayerNotify tRsp)
 {
     Debug.Log("kickPlayerNotify: " + JsonUtil.toJson(tRsp));
     Loom.QueueOnMainThread(() =>
     {
         if (GameManager.Instance.kickPlayerNotify != null)
         {
             GameManager.Instance.kickPlayerNotify(tRsp);
         }
     });
     return(0);
 }
예제 #2
0
    private void KickPlayerNotify(MsKickPlayerNotify tRsp)
    {
        int userID = tRsp.userID;

        if (userID == GameManager.userID)
        {
            SingleTone <ContextManager> .Instance.ShowView(new GameLobbyContext(), false);

            return;
        }

        OnPlayerLeaveRoom(userID);
    }