mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
21 lines
463 B
C#
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())
|
|
{
|
|
}
|
|
}
|