public void SetupHighlightArrow(FtueArrowDirection direction)
        {
            disabledImage.gameObject.SetActive(false);
            highlightImage.gameObject.SetActive(false);
            lineTransform.gameObject.SetActive(false);
            arrowHolder.gameObject.SetActive(true);
            Vector3 rotation = new Vector3(0, 0, 90 * (int)direction);

            arrowHolder.transform.Rotate(rotation);
        }
        public void SetupArrow(int arrowLength, FtueArrowDirection direction)
        {
            disabledImage.gameObject.SetActive(false);
            highlightImage.gameObject.SetActive(false);
            lineTransform.gameObject.SetActive(true);
            arrowHolder.gameObject.SetActive(false);
            float lineLength = lineTransform.rect.size.y + (70 * (arrowLength - 1));

            lineTransform.sizeDelta = new Vector2(lineTransform.rect.size.x, lineLength);
            Vector3 rotation = new Vector3(0, 0, 90 * (int)direction);

            lineHolder.transform.Rotate(rotation);
        }
Exemple #3
0
        public void ShowArrowHighlight(Transform parent, FtueArrowDirection direction)
        {
            FtueSquare instantiatedPrefab = Instantiate(ftuePrefab, this.gameObject.transform.position, Quaternion.identity, parent);

            instantiatedPrefab.SetupHighlightArrow(direction);
        }
Exemple #4
0
        public void ShowSquareArrow(Transform parent, int squareLength, FtueArrowDirection direction)
        {
            FtueSquare instantiatedPrefab = Instantiate(ftuePrefab, this.gameObject.transform.position, Quaternion.identity, parent);

            instantiatedPrefab.SetupArrow(squareLength, direction);
        }
Exemple #5
0
 public void ShowCircleArrowHighlight(int index, int length, FtueArrowDirection direction)
 {
     gridSquares[index].ShowSquareArrow(ftueHolder, length, direction);
 }
Exemple #6
0
 public void ShowArrowHighlight(int index, FtueArrowDirection direction)
 {
     gridSquares[index].ShowArrowHighlight(ftueHolder, direction);
 }