public void RangeAttack(Vector2 direction) { var knife = sheath.TakeKnife(false); if (knife != null) { knifesInAirList.Add(knife); knife.PullingForce = pullingForce; knife.Launch(direction, false); } sheath.StopCharge(); }
private void Input_OnRangePressed() { if (player.Frozen) { return; } var knife = sheath.TakeKnife(false); if (knife != null) { knifesInAirList.Add(knife); knife.Launch(input.GetAimingDirection(), true); } }