Change Term.Prints' input from a string to an object
This commit is contained in:
parent
bb6cbb4c4d
commit
37fe348b2f
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user