Ejemplo n.º 1
0
        private void CancelMove()
        {
            this.enabled = false;

            foreach (GameObject highlight in locationHighlights)
            {
                Destroy(highlight);
            }

            //GameManager.Instance.DeselectPiece(movingPiece);
            TileSelector selector = GetComponent <TileSelector>();

            selector.EnterState();
        }
Ejemplo n.º 2
0
        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);
            }
        }