internal static bool OnOpenAsset2(int instanceId, int a) { if (instanceId == prevInstanceId) { prevInstanceId = -1; return(false); } prevInstanceId = instanceId; return(ConsolerHelper.IsActiveFromConsole() ? OpenFromConsoler() : OpenFromProject(instanceId)); }
private static bool OpenFromConsoler() { string logText = ConsolerHelper.GetLog(); if (string.IsNullOrEmpty(logText)) { return(false); } if (GlobalLogHelper.Open(logText)) { return(true); } if (LuaConsoler.OpenFromConsoler(logText)) { return(true); } return(false); }