标签:style blog color ar div log sp on c
public class LogManager { // Fields public static bool Debugstate; // Methods public static void Log(string strText) { if (Debugstate) { Debug.Log(strText); } } public static void Log(string strText, Object context) { if (Debugstate) { Debug.Log(strText, context); } } public static void LogError(string strText) { if (Debugstate) { Debug.LogError(strText); } } public static void LogError(string strText, Object context) { if (Debugstate) { Debug.LogError(strText, context); } } public static void LogWarning(string strText) { if (Debugstate) { Debug.LogWarning(strText); } } public static void LogWarning(string strText, Object context) { if (Debugstate) { Debug.LogWarning(strText, context); } } }
标签:style blog color ar div log sp on c
原文地址:http://www.cnblogs.com/123ing/p/3951582.html