public override Layout Clone() { ChessLayout cloneLayout = new ChessLayout(); foreach (Coordinate c in Keys) { cloneLayout.Add(c, pieceFactory.CreatePiece(this[c].Type, this[c].Color)); } return(cloneLayout); }
public void Init(ChessLayout prefab, Transform idleRoot) { mPrefab = prefab; mIdleRoot = idleRoot; }