Skip to content

Commit

Permalink
0.0.2.32 release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxiegame committed Feb 26, 2018
1 parent b3d03fb commit 9a13bf8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 33 deletions.
Binary file modified Assets/QFramework/0.Extension/Example/Scene.unity
Binary file not shown.
1 change: 0 additions & 1 deletion Assets/QFramework/2.Singleton/readme.txt

This file was deleted.

38 changes: 6 additions & 32 deletions Assets/QFramework/Libs/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
namespace QFramework
{
using System;

#if UNITY_5_5_OR_NEWER
using UnityEngine;
#endif

public enum LogLevel
{
Expand Down Expand Up @@ -79,11 +76,8 @@ public static void I(object msg)
{
return;
}
#if UNITY_5_5_OR_NEWER

Debug.Log(msg);
#else
Console.WriteLine(msg);
#endif
}

public static void I(string msg, params object[] args)
Expand All @@ -92,11 +86,8 @@ public static void I(string msg, params object[] args)
{
return;
}
#if UNITY_5_5_OR_NEWER

Debug.Log(string.Format(msg, args));
#else
Console.WriteLine(msg, args);
#endif
}

public static void E(object msg)
Expand All @@ -105,11 +96,8 @@ public static void E(object msg)
{
return;
}
#if UNITY_5_5_OR_NEWER

Debug.LogError(msg);
#else
Console.WriteLine("[Error] {0}", msg);
#endif
}

public static void E(Exception e)
Expand All @@ -118,11 +106,8 @@ public static void E(Exception e)
{
return;
}
#if UNITY_5_5_OR_NEWER

Debug.LogException(e);
#else
Console.WriteLine("[Exception] {0}", e);
#endif
}

public static void E(string msg, params object[] args)
Expand All @@ -131,11 +116,8 @@ public static void E(string msg, params object[] args)
{
return;
}
#if UNITY_5_5_OR_NEWER

Debug.LogError(string.Format(msg, args));
#else
Console.WriteLine(string.Format("[Error] {0}", msg), args);
#endif
}

public static void W(object msg)
Expand All @@ -144,12 +126,8 @@ public static void W(object msg)
{
return;
}

#if UNITY_5_5_OR_NEWER

Debug.LogWarning(msg);
#else
Console.WriteLine("[Warning] {0}", msg);
#endif
}

public static void W(string msg, params object[] args)
Expand All @@ -159,11 +137,7 @@ public static void W(string msg, params object[] args)
return;
}

#if UNITY_5_5_OR_NEWER
Debug.LogWarning(string.Format(msg, args));
#else
Console.WriteLine(string.Format("[Warning] {0}", msg), args);
#endif
}
}
}
2 changes: 2 additions & 0 deletions Assets/QFramework/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
run QFramework/0.Extension/Example’s scenes
run QFramework/2.Singleton/Example’s scenes
File renamed without changes.
Binary file modified ProjectSettings/ProjectSettings.asset
Binary file not shown.

0 comments on commit 9a13bf8

Please sign in to comment.