public static void PrintFormat(string format, params object[] args) { Debug.LogFormat(format, args); if (LogInGame) { // no format support yet GUIConsole.Log(format); } }
public static void Print(object message) { string msg = ObjectToString(message); Debug.Log(msg); if (LogInGame) { GUIConsole.Log(msg); } }
public static void PrintObjects(string delimeter, params object[] objects) { string msg = ObjectsToString(delimeter, objects); Debug.Log(msg); if (LogInGame) { GUIConsole.Log(msg); } }
/// <summary> /// Lists the following variables as prints /// </summary> /// <param name="vars">Array with even amount of objects. Odd number is for variable name, even values are for the actual variable values</param> public static void PrintVariables(params object[] vars) { if (vars.Length % 2 != 0) { throw new Exception("Var count is not divisible by 2"); } for (int i = 0; i < vars.Length; i += 2) { string msg = VarString(vars[i], vars[i + 1]); Debug.Log(msg); if (LogInGame) { GUIConsole.Log(msg); } } }