Hello everyone,
I'm currently working with an android application, but stuck with the touch inputs for the main player. I already have the movements setup, but i don't know how to convert this into touch input.
This is the player movement script:
How do i script a touch input?
I'm currently working with an android application, but stuck with the touch inputs for the main player. I already have the movements setup, but i don't know how to convert this into touch input.
This is the player movement script:
Code (CSharp):
- public float moveSpeed;
- public GameObject deathParticles;
- private float maxSpeed = 5f;
- private Vector3 input;
- private Vector3 spawn;
- // Use this for...