示例#1
0
 private void Awake()
 {
     instance = this;
     // クライアントが送るデータの初期化
     cData        = new Model.ClientData(null, 0, 0, new Vector2());
     sendCardData = new Model.ClientData(null, 0, 0, new Vector2());
 }
示例#2
0
 private void Awake()
 {
     instance = this;
     // クライアントが送るデータの初期化
     sendCardData = new Model.ClientData(null, 0, 0, new Vector2());
     recvSeverData.isRecvFinished = false;
 }
示例#3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     useCardData = new Model.ClientData(null, -1, 0, new Vector2());
 }
示例#4
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     // クライアントが送るデータの初期化
     useCardData = new Model.ClientData(null, 0, 0, new Vector2());
 }
示例#5
0
        //ClientData構造体を分解し、ClientDataClassに置き換える
        public Model.ClientData SendArrayConvertClass(SendClientDataArray severData)
        {
            ClientData    cData   = new Model.ClientData(null, 0, 0, new Vector2());
            CardDataProxy setdata = new CardDataProxy(severData.Number,
                                                      severData.Name,
                                                      severData.Text,
                                                      severData.Cost,
                                                      severData.Score,
                                                      severData.Type,
                                                      severData.Rarity
                                                      );

            cData.CardDataProxy = setdata;
            cData._PlayerNum    = severData._PlayerNum;
            cData._CardPlayTime = severData._CardPlayTime;
            cData._FieldPos     = severData._FieldPos;

            return(cData);
        }
示例#6
0
 public override void OnStartClient()
 {
     cData        = new Model.ClientData(null, 0, 0, new Vector2());
     sendCardData = new Model.ClientData(null, 0, 0, new Vector2());
 }