using System.Collections; using System.Collections.Generic; using UnityEngine; public class moveCursor : MonoBehaviour { public Transform reticle; public float IncrementLevel; Vector3 mDir; bool up; bool dwn; // Start is called before the first frame update void Start() { mDir = Vector3.zero; bool up = false; bool dwn = false; } public void goingUp() { reticle.Translate(Vector3.up * IncrementLevel * Time.deltaTime); } public void goingDwn() { reticle.Translate(Vector3.down * IncrementLevel * Time.deltaTime); } public void goingRight() { reticle.Translate(Vector3.right * IncrementLevel * Time.deltaTime); } public void goingLeft() { reticle.Translate(Vector3.left * IncrementLevel * Time.deltaTime); } // Update is called once per frame void Update() { } }