1
0
mirror of synced 2024-12-13 15:01:08 +01:00
WACVR/Assets/Script/LocomotionStatus.cs
msk e0b09a5ea4 Locomotion stuff
- Holding the primary button on both controllers for 1 second will enable/disable locomotion
- Swapped joysticks' functions
2022-05-24 00:21:47 -07:00

22 lines
473 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class LocomotionStatus : MonoBehaviour
{
private TextMeshPro text;
// Start is called before the first frame update
void Start()
{
text = GetComponent<TextMeshPro>();
UpdateText(LocomotionToggle.IsEnabled);
}
public void UpdateText(bool status)
{
text.text = "LOCOMOTION: " + (status ? "ENABLED" : "DISABLED");
}
}