Exemple #1
0
 public void SetData(int num, int x, int y, message.Enums.ChessType type)
 {
     m_num  = num;
     m_x    = x;
     m_y    = y;
     m_type = type;
 }
Exemple #2
0
 public void SetType(message.Enums.ChessType type)
 {
     if (type == message.Enums.ChessType.Black)
     {
         chess.sprite = black;
         gameObject.SetActive(true);
     }
     else if (type == message.Enums.ChessType.White)
     {
         chess.sprite = white;
         gameObject.SetActive(true);
     }
     else
     {
         gameObject.SetActive(false);
     }
 }