private void Awake() { IPiece = PieceFactory.createInstance(type); allowedMovesDeltas = IPiece.GetAllowedMoves(); //FindObjectOfType<GameManager>().AddPiece(this); }
private void Awake() { IPiece = PieceFactory.createInstance(type); allowedMovesDeltas = IPiece.GetAllowedMoves(); //FindObjectOfType<GameManager>().AddPiece(this); }