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(); } }