30 lines
749 B
C#
30 lines
749 B
C#
using UnityEngine;
|
|
using Yarn.Unity;
|
|
|
|
namespace Ichni.Story.YarnFunctions
|
|
{
|
|
public static class GeneralFunctions
|
|
{
|
|
[YarnCommand("log")]
|
|
public static void Log(string message, string logType)
|
|
{
|
|
logType = logType.ToLower();
|
|
|
|
switch (logType)
|
|
{
|
|
case "info":
|
|
Debug.Log(message);
|
|
break;
|
|
case "warning":
|
|
Debug.LogWarning(message);
|
|
break;
|
|
case "error":
|
|
Debug.LogError(message);
|
|
break;
|
|
default:
|
|
Debug.Log(message);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} |