added UFO skywalk animation and bolt car teleport button

This commit is contained in:
2025-03-25 20:09:15 +02:00
parent 7ea187f9fd
commit e40106b45e
1036 changed files with 2552 additions and 43098 deletions

View File

@@ -36,6 +36,7 @@ public class Menu : MonoBehaviour
private float floor2UpperLimit = 9;
private float floorsMidpointLimit = 2.5f;
private float floor1LowerLimit = -5;
private bool activated = true;
private void Awake()
{
@@ -46,9 +47,19 @@ public class Menu : MonoBehaviour
canvas.enabled = false;
}
public void DeactivateMenu() // Makes the ToggleMenu inable to toggle.
{
canvas.enabled = false;
activated = false;
}
public void ReactivateMenu() // Makes the ToggleMenu able to toggle again.
{
activated = true;
}
private void ToggleMenu(InputAction.CallbackContext context)
{
if (!activated) return;
// Get the camera's local Y rotation relative to the parent of MenuRotator
float relativeYRotation = Camera.transform.localEulerAngles.y;