Files
Fishing2/Assets/Scripts/Fishing/New/View/Tackle/FBobber.cs
2026-03-09 23:41:13 +08:00

16 lines
449 B
C#

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