fix: add missing Push method to ActionHistory
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user