修改提交
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user