修改鱼线
This commit is contained in:
@@ -30,6 +30,7 @@ namespace NBF
|
||||
{
|
||||
protected override void Update(PlayerInput self)
|
||||
{
|
||||
self.UpdateInput();
|
||||
self.UpdateMove();
|
||||
}
|
||||
}
|
||||
@@ -46,6 +47,26 @@ namespace NBF
|
||||
|
||||
#region Input
|
||||
|
||||
private void UpdateInput()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Alpha0))
|
||||
{
|
||||
// SetLineLength(lineLength);
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Plus) || Input.GetKeyDown(KeyCode.Equals))
|
||||
{
|
||||
Player.HandItem.LineLength += 0.1f;
|
||||
// lineLength += 0.1f;
|
||||
// SetLineLength(lineLength);
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Minus))
|
||||
{
|
||||
Player.HandItem.LineLength -= 0.1f;
|
||||
// lineLength -= 0.1f;
|
||||
// SetLineLength(lineLength);
|
||||
}
|
||||
}
|
||||
|
||||
private void AddInputEvent()
|
||||
{
|
||||
InputManager.OnPlayerPerformed += OnPlayerCanceled;
|
||||
|
||||
Reference in New Issue
Block a user