Exemple #1
0
        public void ResponseRRStartGame(ExtendedEventArgs eventArgs)
        {
            Debug.Log("ResponseRRStartGame has been called from Selection Manager.cs");

            ResponseRRStartGameEventArgs args = eventArgs as ResponseRRStartGameEventArgs;

            if (args.status == 0)
            {
                Application.LoadLevel("RRCountdownScene");
            }
            else
            {
                //			Join();
            }
        }
Exemple #2
0
        public override ExtendedEventArgs process()
        {
            ResponseRRStartGameEventArgs args = null;

            args        = new ResponseRRStartGameEventArgs();
            args.status = status;

            if (status == 0)
            {
                //battle start, stop sending battle request
//			Debug.Log("response received from server");
            }
            else if (status == 1)
            {
                //battle not start, continue sending battle request
            }
            return(args);
        }