Fix full flow reset cleanup for outlines and residual objects, adjust EndPanel buttons
This commit is contained in:
@@ -22,6 +22,12 @@ public static class ActionHistory
|
||||
|
||||
public static Stack<HistoryItem> History = new Stack<HistoryItem>();
|
||||
|
||||
public static void Clear()
|
||||
{
|
||||
History.Clear();
|
||||
Debug.Log("[ActionHistory] 已清空历史记录");
|
||||
}
|
||||
|
||||
public static void Push(ActionType type, MonoBehaviour handler, int extra = 0)
|
||||
{
|
||||
History.Push(new HistoryItem { Type = type, Handler = handler, ExtraInt = extra });
|
||||
@@ -102,4 +108,4 @@ public static class ActionHistory
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user