Files
Fishing2/Assets/Scripts/Fishing/New/View/Player/Tackle/FBobber.cs
2026-04-12 21:17:29 +08:00

18 lines
525 B
C#

using UnityEngine;
namespace NBF
{
public class FBobber : FGearBase
{
protected override void OnInit()
{
// transform.position = Rod.lineHandler.LineConnector_1.transform.position;
var node = Rod.Line.GetLogicalNode(FishingLineNode.NodeType.Float);
SetParent(node.transform);
transform.localPosition = Vector3.zero;
// var buoyancy = GetComponentInParent<CapsuleBuoyancyStable>();
// buoyancy.InitBobber();
}
}
}