剧情+对话完善
This commit is contained in:
@@ -6,11 +6,9 @@ namespace Ichni.Story.YarnFunctions
|
||||
public static class GeneralFunctions
|
||||
{
|
||||
[YarnCommand("log")]
|
||||
public static void Log(string message, string logType)
|
||||
public static void Log(string message, string logType = "info")
|
||||
{
|
||||
logType = logType.ToLower();
|
||||
|
||||
switch (logType)
|
||||
switch (logType?.ToLowerInvariant())
|
||||
{
|
||||
case "info":
|
||||
Debug.Log(message);
|
||||
@@ -27,4 +25,4 @@ namespace Ichni.Story.YarnFunctions
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user