Fix NavBar bug

This commit is contained in:
Santiago Lo Coco 2024-10-27 17:12:35 +01:00
parent 53713995bc
commit 04ae5f2266
2 changed files with 273 additions and 9 deletions

View File

@ -31,14 +31,14 @@ public class ConfigureNavBar : MonoBehaviour
if (boxCollider1 != null)
{
boxCollider1.size = new Vector3(boxCollider1.size.x, isVisible ? 400 : 300, boxCollider1.size.z);
boxCollider1.center = new Vector3(isVisible ? 0: -16, 0, 0);
boxCollider1.size = new Vector3(boxCollider1.size.x, isVisible ? 400 : 370, boxCollider1.size.z);
boxCollider1.center = new Vector3(0, isVisible ? 0: -16, 0);
}
if (boxCollider2 != null)
{
boxCollider2.size = new Vector3(boxCollider1.size.x, isVisible ? 400 : 300, boxCollider2.size.z);
boxCollider2.center = new Vector3(isVisible ? 0: -16, 0, 0);
boxCollider2.size = new Vector3(boxCollider2.size.x, isVisible ? 400 : 370, boxCollider2.size.z);
boxCollider2.center = new Vector3(0, isVisible ? 0: -16, 0);
}
}
}

File diff suppressed because one or more lines are too long