public void ShowSelection(Transform chess, bool showUp) { if (showUp) { chess.gameObject.layer = 11; CurrentSel.MoveToLayer(chess, 11); } else { chess.gameObject.layer = 10; CurrentSel.MoveToLayer(chess, 10); } }
void TurnFinished(Transform chess) { CharacterProperty cp = chess.GetComponent <CharacterProperty>(); if (cp.Moved && cp.Activated && cp.Attacked) { cp.TurnFinished = true; } if (!cp.TurnFinished) { MainGuiFade = true; } else { MainGuiFade = false; CurrentChess.gameObject.layer = 10; currentSelect.MoveToLayer(CurrentChess, 10); currentSelect.EndTurnNetwork(); } }