2022-05-24 09:21:47 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using TMPro;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class LocomotionStatus : MonoBehaviour
|
|
|
|
{
|
|
|
|
private TextMeshPro text;
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
text = GetComponent<TextMeshPro>();
|
|
|
|
UpdateText(LocomotionToggle.IsEnabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void UpdateText(bool status)
|
|
|
|
{
|
2022-10-03 02:04:54 +02:00
|
|
|
text.text = "Locomotion: " + (status ? "Enabled" : "Disabled");
|
2022-05-24 09:21:47 +02:00
|
|
|
}
|
|
|
|
}
|