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
1 changed files with 4 additions and 4 deletions

View File

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