コード例 #1
0
        public void ResponseRaceInit(ExtendedEventArgs eventArgs)
        {
            ResponseRaceInitEventArgs args = eventArgs as ResponseRaceInitEventArgs;

            if (args.status == 0)
            {
                Application.LoadLevel("RRReadyScene");
            }
            else
            {
                Join();
            }
        }
コード例 #2
0
        public override ExtendedEventArgs process()
        {
            ResponseRaceInitEventArgs args = null;

            args        = new ResponseRaceInitEventArgs();
            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);
        }