处理plug和线缆以及几个bug

This commit is contained in:
2025-05-30 15:13:06 +08:00
parent bdb514fc46
commit 73fd121052
10 changed files with 1152 additions and 829 deletions
@@ -2,6 +2,7 @@ using System.Collections;
using AibisDream.FixSystem;
using AibisDream.Framework;
using Yarn.Unity;
using UnityEngine;
namespace AibisDream
{
@@ -111,7 +112,14 @@ namespace AibisDream
public static void ModuleHightLight(string moduleName, bool enable)
{
var targetModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
targetModule.Highlight(enable);
if (targetModule != null)
{
targetModule.Highlight(enable);
}
else
{
Debug.LogWarning($"Module {moduleName} not found!");
}
}
[YarnCommand("ModuleAlarm")]