private static bool UndoCommand(IRevertableCommand revertableCommand) { try { revertableCommand.Undo(); } catch (Exception e) { logger.Error("Can't undo the command.", e); Panic(); return(false); } return(true); }
private static bool UndoCommand(IRevertableCommand revertableCommand) { try { revertableCommand.Undo(); } catch (Exception e) { Debug.LogErrorFormat("Can't undo the command.\n{0}", e); Panic(); return(false); } return(true); }