# Conflicts: # Assets/Scenes/RopeTest.unity # Assets/Scripts/Fishing/New/View/Player/Tackle/FLine.cs # Assets/Scripts/Fishing/Rope/Rope.cs # Assets/Scripts/Fishing/Rope/Rope.cs.meta
17 lines
518 B
C#
17 lines
518 B
C#
using UnityEngine;
|
|
|
|
namespace NBF
|
|
{
|
|
public class FBobber : FGearBase
|
|
{
|
|
protected override void OnInit()
|
|
{
|
|
// transform.position = Rod.lineHandler.LineConnector_1.transform.position;
|
|
var endNode = Rod.Line.GetNode(FLineLogicNodeType.Bobber);
|
|
SetParent(endNode.transform);
|
|
transform.localPosition = Vector3.zero;
|
|
// var buoyancy = GetComponentInParent<CapsuleBuoyancyStable>();
|
|
// buoyancy.InitBobber();
|
|
}
|
|
}
|
|
} |