public override void Clear() { if (_succeedWork != null) { _succeedWork.OnDestroy(); } if (_failWork != null) { _failWork.OnDestroy(); } }
/// <summary> /// 子对象销毁时(常用于重用子对象) /// </summary> /// <param name="command">Command.</param> protected virtual void OnChildDestroy(CommandBase command) { command.OnDestroy(); }