コード例 #1
0
        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();
        }
コード例 #2
0
    private void Input_OnRangePressed()
    {
        if (player.Frozen)
        {
            return;
        }

        var knife = sheath.TakeKnife(false);

        if (knife != null)
        {
            knifesInAirList.Add(knife);
            knife.Launch(input.GetAimingDirection(), true);
        }
    }