Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to make character one time shoot in one direction ?

$
0
0
Hey everyone,

I design a character can shoot in four direction: up down left right. By using four button: W S A D. The issue is that , when i push those buttons together the character can shoot in direction at same. But what i want is when i push one button the character only can shoot in that direction .I don`t want my character can shot in different directions at same time. How can i fix this.Please assist .
This is my code:

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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