This commit is contained in:
2025-01-25 13:29:46 +08:00
parent b47b29f996
commit 5703efd59e
10 changed files with 392 additions and 67 deletions
@@ -1,5 +1,6 @@
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.PlayerLoop;
using Yarn.Unity;
namespace AibisDream.FixSystem
@@ -10,7 +11,11 @@ namespace AibisDream.FixSystem
public Plug PlugRef { get; private set; }
public Cable CableRef { get; private set; }
public PhysicCable PhysicCableRef { get; private set; }
public Transform CableRootPos { get; private set; }
public Transform ControlPoint { get; private set; }
public ISocket InitSocket { get; private set; }
public BodyModuleSystem BodyModuleSystem { get; private set; }
@@ -55,13 +60,19 @@ namespace AibisDream.FixSystem
CableRef = transform.Find("Cable").GetComponent<Cable>();
CableRootPos = transform.Find("Cable Root Pos").transform;
InitSocket = transform.Find("Init Socket").GetComponent<ISocket>();
PhysicCableRef = transform.Find("PhysicCable").GetComponent<PhysicCable>();
BodyModuleSystem = transform.parent.GetComponent<BodyModuleSystem>();
}
private void InitSystem()
{
PlugRef.InitPlug(InitSocket);
//PlugRef.InitPlug(InitSocket);
PhysicCableRef.Init();
}
public void Update()
{
}
public void ResetPlug()