added UFO skywalk animation and bolt car teleport button
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user