- Home /
How to shoot with swipe?
How can i change this c# code to swipe shoot method?
if (!IsPointerOverUIObject() && Input.GetMouseButtonUp(0) && readyToshoot) {
ball.GetComponent<Animator>().enabled = false;
ball.GetComponent<Rigidbody>().AddForce(dir * ballForce, ForceMode.Impulse);
readyToshoot = false;
}
Comment
Your answer
Follow this Question
Related Questions
How to shoot a bullet to the mouse cursor position? 1 Answer
Air Strike shoot aiming at cross hairs in middle of the screen 2 Answers
Firing System with two Shoot Points 1 Answer
FPS shooting 1 Answer
2D game how to make my player shoot 1 Answer