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; }
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); } }