Пример #1
0
        private void NotifyBallReady(Message msg)
        {
            object    retParam       = MessagePackDecoder <object>(msg.NotifyInfo.RpcParams);
            BallRdArr opponBallArray = (BallRdArr)JsonConvert.DeserializeObject(retParam.ToString(), typeof(BallRdArr));

            int[] types = new int[] { opponBallArray.first, opponBallArray.second, opponBallArray.third };
            RoundManager.Instance.DeployEnemy(types);
            //ServerModules.BallReadyServer.text = opponBallArray.ToString();
            //DebugLogger.Debug("opponBallArray class :" + opponBallArray.first.ToString());
        }
Пример #2
0
    public void DeploySelf()
    {
        deploying = false;
        GameManager.Instance.uIHUD.footerDeploy.SetActive(false);
        GameManager.Instance.uIHUD.spawnPoints[0].transform.parent.gameObject.SetActive(false);

        //Send ready message.
        //Get server respond.

        List <Ball> list      = GameManager.Instance.isPlayerA ? ballListA : ballListB;
        BallRdArr   ballRdArr = new BallRdArr(list[0].type, list[1].type, list[2].type);

        LoginRequist.ucl.rpcCall("play.ball_ready", JsonConvert.SerializeObject(ballRdArr), null);
    }
Пример #3
0
        void BallReadyFunc()
        {
            BallRdArr ballArr = new BallRdArr(1, 2, 3);

            LoginRequist.ucl.rpcCall("play.ball_ready", JsonConvert.SerializeObject(ballArr), null);
        }