43 lines
847 B
C#
43 lines
847 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System;
|
|
using System.Linq;
|
|
|
|
using UnityEngine;
|
|
|
|
namespace Rokojori
|
|
{
|
|
|
|
public class RJLog
|
|
{
|
|
static string _StringifyObjects( object obj, params object[] values )
|
|
{
|
|
string message = obj + "";
|
|
|
|
for ( int i = 0; i < values.Length; i++ )
|
|
{
|
|
message += " " + values[ i ];
|
|
}
|
|
|
|
return message;
|
|
}
|
|
|
|
public static void Log( object obj, params object[] values )
|
|
{
|
|
Debug.Log( _StringifyObjects( obj, values ) );
|
|
}
|
|
|
|
public static void Warn( object obj, params object[] values )
|
|
{
|
|
Debug.LogWarning( _StringifyObjects( obj, values ) );
|
|
}
|
|
|
|
public static void Error( object obj, params object[] values )
|
|
{
|
|
Debug.LogError( _StringifyObjects( obj, values ) );
|
|
}
|
|
|
|
}
|
|
|
|
} |