fix: add missing Push method to ActionHistory

This commit is contained in:
yangbear
2026-07-09 03:23:41 +08:00
parent 8123f18785
commit 3826a8b3bb
+5
View File
@@ -21,6 +21,11 @@ public static class ActionHistory
public static Stack<HistoryItem> History = new Stack<HistoryItem>();
public static void Push(ActionType type, MonoBehaviour handler, int extra = 0)
{
History.Push(new HistoryItem { Type = type, Handler = handler, ExtraInt = extra });
}
public static bool TryUndoLast()
{
if (History.Count == 0) return false;