Exemple #1
0
        private void RPCForwardFlagCaptured(string strMessage)
        {
            MsgFlagDelivered cMessage = JsonUtility.ValidateJsonData <MsgFlagDelivered>(strMessage);

            clientManager.SendGameMessage(new MsgFlagDelivered()
            {
                PlayerName = cMessage.PlayerName, PlayerTeam = cMessage.PlayerTeam
            });
        }
        public void ForwardFlagCaptured(MsgFlagDelivered msg)
        {
            string strSerializedMessage = JsonUtility.SerializeToJson <MsgFlagDelivered> (msg);

            networkView.RPC(RPCFunctions.RPC_FORWARD_FLAG_CAPTURED, RPCMode.Others, strSerializedMessage);
        }