HeavenStudioPlus/Assets/Scripts/WTF.cs
Braedon 923dd15597 Command pattern (Undo/Redo) system began. (Read desc)
I spent about 6 hours trying to fix this one specific bug involving the move undo. Turns out all I had to do was calm down and think logically instead of typing random bullshit for a few hours until it worked. I'm tired and I thank this for ruining my sleep schedule.
2022-01-22 05:44:19 -05:00

21 lines
No EOL
466 B
C#

using UnityEngine;
// this is a script for testing
using RhythmHeavenMania.Editor;
namespace RhythmHeavenMania.Tests
{
public class WTF : MonoBehaviour
{
public GameObject test;
private void Update()
{
if (Input.GetKeyDown(KeyCode.Z))
{
GetComponent<CommandManager>().Execute(new TestCommand(test, new Vector3(Random.Range(-8f, 8f), Random.Range(-6f, 6f))));
}
}
}
}