public PieceColor Flip() { if (currentColor == PieceColor.White) { mAnim.SetTrigger("Wht2BlkFlip"); currentColor = PieceColor.Black; gmScript.addBlack(); } else { mAnim.SetTrigger("Blk2WhtFlip"); currentColor = PieceColor.White; gmScript.addWhite(); } return(currentColor); }