Exemplo n.º 1
0
    public override void OnOperationResponse(ExitGames.Client.Photon.OperationResponse response)
    {
        switch (response.ReturnCode)
        {
        case  (short)ReturnCode.Fail:
            MessageManager._instance.ShowMessage(response.DebugMessage, 2);
            break;

        case (short)ReturnCode.Success:
            MessageManager._instance.ShowMessage("注册成功", 2);
            controller.HideRegisterPanel();
            controller.ShowStartPanel();
            controller.usernameLabelStart.text = user.Username;
            break;
        }
    }