Quantcast
Channel: Questions in topic: "unity3.5"
Viewing all articles
Browse latest Browse all 122

How to shoot with swipe?

$
0
0
How can i change this c# code to swipe shoot method? if (!IsPointerOverUIObject() && Input.GetMouseButtonUp(0) && readyToshoot) { ball.GetComponent().enabled = false; ball.GetComponent().AddForce(dir * ballForce, ForceMode.Impulse); readyToshoot = false; }

Viewing all articles
Browse latest Browse all 122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>