public Transform LaunchProjectile(float angle) { if (launcher) { launcher.transform.position = actionPoint.position; Transform proj = launcher.launch(gameObject, AimingVector, angle); return(proj); } if (projectile) { projectile.transform.position = actionPoint.position; projectile.transform.forward = aimingVector; projectile.transform.Rotate(-angle, 0f, 0f, Space.Self); projectile.Launch(throwForce); Transform proj = projectile.transform; projectile = null; actionRadius.color = actionRadiusBaseColour; return(proj); } else { return(null); } }