处理plug和线缆以及几个bug
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user