private void CancelMove() { this.enabled = false; foreach (GameObject highlight in locationHighlights) { Destroy(highlight); } //GameManager.Instance.DeselectPiece(movingPiece); TileSelector selector = GetComponent <TileSelector>(); selector.EnterState(); }
private void ExitState() { this.enabled = false; TileSelector selector = GetComponent <TileSelector>(); tileHighlight.SetActive(false); //GameManager.Instance.DeselectPiece(movingPiece); movingPiece = null; //GameManager.Instance.NextPlayer(); selector.EnterState(); foreach (GameObject highlight in locationHighlights) { Destroy(highlight); } }