Question by
CactusStudios · Mar 19, 2017 at 12:06 PM ·
scripting problemtouchtouchscreen
Opposite moving object?
Hello I need help making a script. Someone else suggested a Other script but I didn't know how to use it because they didn't include The stuff at the start here it is:
private Vector3 direction = Vector3.left ;
private void Update() { if( / touch / ) direction = -direction ; }
Can anyone show me how to use this or add the stuff at the start. Thanks :) Also sorry if this seems stupid I'm a noob at unity :(
Comment
Your answer
Follow this Question
Related Questions
How to replace KeyCode.Space with a simple tap on Android? 1 Answer
Help with script!!! 2 Answers
Simulated Touchscreen of the new input system problems 0 Answers
ScreenToWorldPoint on One Axis? 0 Answers
iOS touch delay? 0 Answers