Exemplo n.º 1
0
 private void EnableSides()
 {
     CurrentBase.SetActive(true);
     CurrentFront.SetActive(true);
     CurrentRight.SetActive(true);
     CurrentBack.SetActive(true);
     CurrentLeft.SetActive(true);
 }
Exemplo n.º 2
0
        private void DisableIncorrectSides(IWall wall)
        {
            if (_currentIndexBase != wall.IndexBase)
            {
                if (CurrentBase)
                {
                    CurrentBase.SetActive(false);
                }
            }

            if (_currentIndexFront != wall.IndexFront)
            {
                if (CurrentFront)
                {
                    CurrentFront.SetActive(false);
                }
            }

            if (_currentIndexRight != wall.IndexRight)
            {
                if (CurrentRight)
                {
                    CurrentRight.SetActive(false);
                }
            }

            if (_currentIndexBack != wall.IndexBack)
            {
                if (CurrentBack)
                {
                    CurrentBack.SetActive(false);
                }
            }

            if (_currentIndexLeft != wall.IndexLeft)
            {
                if (CurrentLeft)
                {
                    CurrentLeft.SetActive(false);
                }
            }
        }