Files
ichni_Official/Assets/Scripts/NewStorySystem/YarnFunctions/GeneralFunctions.cs

29 lines
725 B
C#
Raw Normal View History

2026-07-07 01:28:27 -04:00
using UnityEngine;
using Yarn.Unity;
namespace Ichni.Story.YarnFunctions
{
public static class GeneralFunctions
{
[YarnCommand("log")]
2026-07-21 15:24:42 -04:00
public static void Log(string message, string logType = "info")
2026-07-07 01:28:27 -04:00
{
2026-07-21 15:24:42 -04:00
switch (logType?.ToLowerInvariant())
2026-07-07 01:28:27 -04:00
{
case "info":
Debug.Log(message);
break;
case "warning":
Debug.LogWarning(message);
break;
case "error":
Debug.LogError(message);
break;
default:
Debug.Log(message);
break;
}
}
}
2026-07-21 15:24:42 -04:00
}