private void EnableSides() { CurrentBase.SetActive(true); CurrentFront.SetActive(true); CurrentRight.SetActive(true); CurrentBack.SetActive(true); CurrentLeft.SetActive(true); }
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); } } }