Exemple #1
0
 internal static bool OnOpenAsset2(int instanceId, int a)
 {
     if (instanceId == prevInstanceId)
     {
         prevInstanceId = -1;
         return(false);
     }
     prevInstanceId = instanceId;
     return(ConsolerHelper.IsActiveFromConsole() ? OpenFromConsoler() : OpenFromProject(instanceId));
 }
Exemple #2
0
        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);
        }