ArabDesert/Assets/QvPen/UdonScript/UI/QvPen_ClearAllButton.cs

21 lines
486 B
C#
Raw Permalink Normal View History

2024-05-25 09:10:35 +03:00
using UdonSharp;
using UnityEngine;
namespace QvPen.UdonScript.UI
{
[DefaultExecutionOrder(30)]
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
public class QvPen_ClearAllButton : UdonSharpBehaviour
{
[SerializeField]
private QvPen_Settings settings;
public override void Interact()
{
foreach (var penManager in settings.penManagers)
if (penManager)
penManager.Clear();
}
}
}