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

21 lines
486 B
C#

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();
}
}
}