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