예제 #1
0
        public void ResponseLogin(ExtendedEventArgs eventArgs)
        {
            ResponseLoginEventArgs args = eventArgs as ResponseLoginEventArgs;

            if (args.status == 0)
            {
                Constants.USER_ID = args.user_id;
            }
            else
            {
                Debug.Log("Login Failed");
            }
        }
예제 #2
0
        public void ResponseGameState(ExtendedEventArgs eventArgs)
        {
            ResponseLoginEventArgs args = eventArgs as ResponseLoginEventArgs;

            if (args.status == 0)
            {
                Constants.USER_ID = args.user_id;
            }
            else
            {
                Debug.Log("Response GameState Failed");                  // Don't know what comment should be made here
            }
        }
예제 #3
0
        public override ExtendedEventArgs process()
        {
            ResponseLoginEventArgs args = null;

            if (status == 0)
            {
                args              = new ResponseLoginEventArgs();
                args.status       = status;
                args.user_id      = user_id;
                args.username     = username;
                args.player_money = player_money;
                args.player_level = player_level;
                //args.last_logout = last_logout;
            }

            return(args);
        }