Exemplo n.º 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");
            }
        }
Exemplo n.º 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
            }
        }
Exemplo n.º 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);
        }