修复浮漂和线
This commit is contained in:
@@ -93,15 +93,15 @@ namespace NBF
|
||||
}
|
||||
|
||||
|
||||
// public void OnUseItem(PlayerItemView item)
|
||||
// {
|
||||
// var itemType = item.Item.ConfigID.GetItemType();
|
||||
// if (itemType == ItemType.Rod)
|
||||
// {
|
||||
// _isRodLayerEnabled = true;
|
||||
// // _IK.SetBipedLeftHandIK(enabled: false, reel.FingersIKAnchor);
|
||||
// }
|
||||
// }
|
||||
public void OnUseItem(int configId)
|
||||
{
|
||||
var itemType = configId.GetItemType();
|
||||
if (itemType == ItemType.Rod)
|
||||
{
|
||||
_isRodLayerEnabled = true;
|
||||
// _IK.SetBipedLeftHandIK(enabled: false, reel.FingersIKAnchor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetLayerWeight(string layer, float weight)
|
||||
@@ -153,14 +153,13 @@ namespace NBF
|
||||
public void OnRodThrowStart()
|
||||
{
|
||||
Debug.LogError("OnRodThrowStart");
|
||||
// if (Player.State == PlayerState.Throw)
|
||||
// {
|
||||
// var playerStateView = Player.GetComponent<PlayerStateView>();
|
||||
// if (playerStateView.CurrentStateView is PlayerStageViewThrow playerStateThrow)
|
||||
// {
|
||||
// playerStateThrow.OnRodThrowStart();
|
||||
// }
|
||||
// }
|
||||
if (Player.State == PlayerState.Throw)
|
||||
{
|
||||
if (Player.CurrentStateView is PlayerStageViewThrow playerStateThrow)
|
||||
{
|
||||
playerStateThrow.OnRodThrowStart();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -169,14 +168,13 @@ namespace NBF
|
||||
public void OnRodThrownEnd()
|
||||
{
|
||||
Debug.LogError("OnRodThrownEnd");
|
||||
// if (Player.State == PlayerState.Throw)
|
||||
// {
|
||||
// var playerStateView = Player.GetComponent<PlayerStateView>();
|
||||
// if (playerStateView.CurrentStateView is PlayerStageViewThrow playerStateThrow)
|
||||
// {
|
||||
// playerStateThrow.OnRodThrownEnd();
|
||||
// }
|
||||
// }
|
||||
if (Player.State == PlayerState.Throw)
|
||||
{
|
||||
if (Player.CurrentStateView is PlayerStageViewThrow playerStateThrow)
|
||||
{
|
||||
playerStateThrow.OnRodThrownEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user