修改提交

This commit is contained in:
2026-05-08 23:26:44 +08:00
parent d2dbb4a70a
commit 3b587e6c4f
4 changed files with 69 additions and 490 deletions

View File

@@ -1,4 +1,6 @@
namespace NBF
using UnityEngine;
namespace NBF
{
public class PlayerStageViewFight : PlayerStageViewBase
{
@@ -8,6 +10,7 @@
if (Player.HandItem is FRod rod)
{
rod.Line.EndNode.Rigidbody.isKinematic = true;
rod.Line.SetFixed(true);
// rod.Line.ChangeMode(LineMode.Constraint);
}
}
@@ -17,10 +20,13 @@
if (Player.HandItem is FRod rod)
{
rod.Line.EndNode.Rigidbody.isKinematic = false;
rod.Line.SetFixed(false);
// rod.Line.ChangeMode(LineMode.Joint);
}
}
private bool _test;
protected override void OnUpdate()
{
PlayerState ret = PlayerState.None;
@@ -31,6 +37,15 @@
// ret = CheckTackFish();
}
if (Input.GetKeyDown(KeyCode.F))
{
if (Player.HandItem is FRod rod)
{
rod.Line.SetFixed(_test);
_test = !_test;
}
}
if (ret != PlayerState.None)
{
Player.ChangeState(ret);