Hello, I'm trying to move my character by touch. Let's say I swipe right I want my character to keep moving to the right, and let's say I swipe forward then I want my character to keep moving forward. I have a problem with my code and the problem is when I swipe forward my character going up instead of going forward.
Move character by touch
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- public class charactercontroller : MonoBehaviour
- {
- float movespeed = 0.4f;
- void Update()
- {
- if...