private void Print(object item) { var message = item.ToString(); RockLog.WriteLine(this, MessageType, message); if (FlushImmediately) { RockLog.FlushLogs(); } if (!PrintUnityConsole || RTPreferences.Data.PrintToUnityConsole) { return; } switch (MessageType) { case LogTier.Info: Debug.Log(message); break; case LogTier.Warning: Debug.LogWarning(message); break; case LogTier.Error: Debug.LogError(message); break; } }
protected override bool OnStepStart() { switch (MessageType) { case LogTier.Info: Debug.Log(Message); break; case LogTier.Warning: Debug.LogWarning(Message); break; case LogTier.Error: Debug.LogError(Message); break; default: return(false); } if (!PrintToConsole || RTPreferences.Data.PrintToUnityConsole) { return(true); } RockLog.WriteLine(this, MessageType, Message); RockLog.FlushLogs(); return(true); }