// Start is called before the first frame update void Start() { int row = ChessHelper.GetRow(gameObject.transform.parent.gameObject); int column = transform.GetSiblingIndex() + 1; position = new Vector2(column, row); }
// Start is called before the first frame update void Start() { int row = ChessHelper.GetRow(gameObject.transform.parent.gameObject); int column = transform.GetSiblingIndex() + 1; position = new Vector2(column, row); }