8 public static void Assert(
bool val,
string message)
21 public static void Assert(
bool val, System.Exception exception)
29 public static void Throw(System.Exception exception)
32 UnityEditor.EditorApplication.isPlaying =
false;
35 System.IO.File.WriteAllText(
"Error.txt", exception.ToString());
36 UnityEngine.Application.Quit();
40 public static void Throw(
string message)
42 Throw(
new System.Exception(message));
static void Assert(bool val, System.Exception exception)
If val is false, throws exception .
static void Throw(string message)
static void Throw(System.Exception exception)
static void Assert(bool val, string message)
If val is false, throws a System.Exception with the message .