This commit is contained in:
2025-12-27 19:30:17 +08:00
parent 028d054705
commit 040a222bd6
58 changed files with 11043 additions and 3352 deletions

View File

@@ -4,9 +4,23 @@ namespace NBF
{
public class FHook : FGearBase
{
public HookAsset hookAsset;
private void Awake()
{
hookAsset = GetComponent<HookAsset>();
}
protected override void OnInit()
{
transform.position = Rod.lineHandler.LineConnector_2.transform.position;
transform.rotation = Rod.lineHandler.LineConnector_2.transform.rotation; // 确保旋转也同步
SetParent(Rod.lineHandler.LineConnector_2.transform);
// var target = lineHandler.LineConnector_2.GetComponent<Rigidbody>();
// var joint = Hook.gameObject.GetComponent<ConfigurableJoint>();
// joint.connectedBody = target;
}
}
}