public void DarkenPieces(GameObject[] pieces) { foreach (GameObject piece in pieces) { PieceAnimation pieceAnimation = piece.GetComponent <PieceAnimation>(); pieceAnimation.DarkenPieceLight(); } }
public void IlluminatePieces(GameObject[] pieces) { foreach (GameObject piece in pieces) { PieceAnimation pieceAnimation = piece.GetComponent <PieceAnimation>(); pieceAnimation.IlluminatePieceLight(); } }
//gwp public virtual void setPieceAnima() { pieceAnima = model.GetComponent<PieceAnimation> (); }