新增了UI节点

This commit is contained in:
fengjiayi
2025-03-14 16:04:06 +08:00
parent 8f8644f595
commit ef11edf7f1
45 changed files with 1032 additions and 41 deletions

View File

@@ -0,0 +1,21 @@
namespace Serein.CloudWorkbench.Services
{
public class CounterService
{
public int Count { get; private set; } = 0;
public event Action? OnCountChanged;
public void Increment()
{
Count++;
OnCountChanged?.Invoke();
}
public void Decrement()
{
Count--;
OnCountChanged?.Invoke();
}
}
}