Files
BetterAmongUs/Resources/DebugWindowRes/ReactorImGui/DragWindow.cs
T
2024-07-27 09:47:03 +00:00

21 lines
463 B
C#

using UnityEngine;
namespace BetterAmongUs.Resources;
public class DragWindow : Window
{
public DragWindow(Rect rect, string title, Action<int> func) : base(rect, title, func)
{
Func = id =>
{
func(id);
GUI.DragWindow(new Rect(0, 0, 10000, 20));
Rect = Rect.ClampScreen();
};
}
public DragWindow(Rect rect, string title, Action func) : this(rect, title, _ => func())
{
}
}