using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MoreMountains.Tools;
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
///
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);
}
}
}