Change Term.Prints' input from a string to an object

This commit is contained in:
excitedneon 2017-05-17 01:19:19 +03:00
parent bb6cbb4c4d
commit 37fe348b2f

View File

@ -35,11 +35,11 @@ namespace Cyber.Console {
/// See <see cref="DebugConsole.Println"/>. /// See <see cref="DebugConsole.Println"/>.
/// </summary> /// </summary>
/// <param name="text">Text.</param> /// <param name="text">Text.</param>
public static void Println(string text) { public static void Println(object text) {
if (Console == null) { if (Console == null) {
Debug.Log(text); Debug.Log(text);
} else { } else {
Console.Println(text); Console.Println(text.ToString());
} }
} }
@ -47,11 +47,11 @@ namespace Cyber.Console {
/// See <see cref="DebugConsole.Print"/>. /// See <see cref="DebugConsole.Print"/>.
/// </summary> /// </summary>
/// <param name="text">Text.</param> /// <param name="text">Text.</param>
public static void Print(string text) { public static void Print(object text) {
if (Console == null) { if (Console == null) {
Debug.Log(text); Debug.Log(text);
} else { } else {
Console.Print(text); Console.Print(text.ToString());
} }
} }