that’s code i make it for windows how i can make it for android or ios
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(PlayerMotor))]
public class PlayerController : MonoBehaviour {
public LayerMask MovementMask;
PlayerMotor motor;
Camera cam;
// Use this for initialization
void Start () {
cam = Camera.main;
motor = GetComponent();
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown(0)) // here it for windows i need it for android *************
{
Ray ray = cam.ScreenPointToRay(Input.mousePosition);// here it mouse position i need that in the touch position for windows i need it for android *************
RaycastHit hit;
if (Physics.Raycast(ray, out hit, 100, MovementMask))
{
motor.MoveToPoint(hit.point);
}
}
}
}