Exemplo n.º 1
0
    public void DragAmmo(Vector3 dragPos)
    {
        if (!CanDrag())
        {
            return;
        }
        particleSystem.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);

        dragPos = rubberBands.Dragging(dragPos);

        float launchForce = GetFireForce();

        launcher.Draw(dragPos, rubberBands.LaunchDirection, launchForce);
        currentMunnition?.Dragging(dragPos, rubberBands.LaunchDirection);
        ui?.SetStretching(rubberBands.Stretching);
    }