using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Ichni.Editor.Commands { public interface ICommand { void Execute(); void Undo(); void Redo(); /// /// 尝试与另一个指令合并。常用于连续滑块拖拽合并等。 /// 若返回 true,则表示合并成功,other 指令会被废弃,并且本指令负责更新自身的目标结果。 /// bool TryMerge(ICommand other); } }