public static void Assert(bool condition) { #if UNILUA_ASSERT if (!condition) { Throw("assert failed!"); } DebugS.Assert(condition); #endif }
public static void Assert(bool condition, string message, string detailMessage) { #if UNILUA_ASSERT if (!condition) { Throw("assert failed! ", message, "\n", detailMessage); } DebugS.Assert(condition, message, detailMessage); #endif }
public static void Assert(bool condition, string message, string detailMessage) { #if UNILUA_ASSERT if (!condition) { Throw("assert failed! ", message, "\n", detailMessage); } #if NETFX_CORE && UNITY_METRO && !UNITY_EDITOR DebugS.Assert(condition, message); #else DebugS.Assert(condition, message, detailMessage); #endif #endif }