提交
This commit is contained in:
@@ -12,9 +12,15 @@ namespace AibisDream
|
||||
[YarnCommand("enable_cut")]
|
||||
public static void EnableCut(string moduleName)
|
||||
{
|
||||
Reset_Plug();
|
||||
var cutModule = BodyModuleSystem.FindBodyModuleByName(moduleName);
|
||||
cutModule.EnableCut();
|
||||
}
|
||||
[YarnCommand("Reset_Plug")]
|
||||
public static void Reset_Plug()
|
||||
{
|
||||
BodyModuleSystem.CableSystem.ResetPlug();
|
||||
}
|
||||
|
||||
[YarnCommand("ShowHeatMap")]
|
||||
public static void ShowHeatMap()
|
||||
@@ -119,5 +125,6 @@ namespace AibisDream
|
||||
{
|
||||
yield return PunchTapeSystem.StartCoroutine(PunchTapeSystem.PrintPunchTapes(count));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using AibisDream.Utility;
|
||||
using DG.Tweening;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using Yarn;
|
||||
|
||||
namespace AibisDream.FixSystem
|
||||
{
|
||||
@@ -135,11 +136,12 @@ namespace AibisDream.FixSystem
|
||||
GlobalVariableKit.IsPlugHighLight = false;
|
||||
_sprite.material.SetFloat(ShineFade, 0);
|
||||
// 拖拽后还要高亮其他组件
|
||||
var bodyModuleSystem = FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
|
||||
foreach (var module in bodyModuleSystem.BodyModules)
|
||||
{
|
||||
module.Highlight(true);
|
||||
}
|
||||
// var bodyModuleSystem = FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
|
||||
// foreach (var module in bodyModuleSystem.BodyModules)
|
||||
// {
|
||||
// module.Highlight(true);
|
||||
// }
|
||||
DialogController.Instance.StartDialogNode("拿起插头");
|
||||
}
|
||||
|
||||
// 开启拖拽
|
||||
|
||||
Reference in New Issue
Block a user