コード例 #1
0
ファイル: Square.cs プロジェクト: Instinctsz/Chess-3D
    // 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);
    }