continuing with combat, sword combos working, not finished, blockign working, need to build blockpush and improving bow combat
This commit is contained in:
@@ -89,6 +89,7 @@ public class BowAimLayerController : MonoBehaviour
|
||||
|
||||
// Are we currently holding the aim button (right click)?
|
||||
private bool _isAiming;
|
||||
public bool IsAiming => _isAiming;
|
||||
|
||||
// Are we currently holding the draw button (left click)?
|
||||
private bool _isDrawing;
|
||||
@@ -277,6 +278,16 @@ public class BowAimLayerController : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public float CurrentDrawPercentage
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!_isDrawing) return 0f;
|
||||
float drawDuration = Time.time - _drawStartTime;
|
||||
return Mathf.Clamp01(drawDuration / _maxDrawTime);
|
||||
}
|
||||
}
|
||||
|
||||
private void CancelDraw()
|
||||
{
|
||||
if (_isDrawing)
|
||||
|
||||
Reference in New Issue
Block a user