using UnityEngine; #if MM_UI namespace MoreMountains.Tools { /// /// A simple test class used in the MMDebugMenu demo scene to shake a few values and output them in the debug on screen console /// [AddComponentMenu("")] public class MMDebugMenuTestClass : MonoBehaviour { /// a label to display public string Label; private float multiplier; /// /// On starts, randomizes a multiplier /// private void Start() { multiplier = Random.Range(0f, 50000f); } /// /// On update, outputs a text on screen /// void Update() { float test = (Mathf.Sin(Time.time) + 2) * multiplier; MMDebug.DebugOnScreen(Label, test); } } } #endif