if(Input.GetMouseButtonDown(0)) {
//constantly get mouse position on screen
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit
= new RaycastHit
();
Vector3 touchPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
//ensure game isnt paused before allowing clicking on treasure
if(!GameManager.Instance.GetComponent<AreaTimer>().gamePaused) {
TargetingCursor
.transform.position = new Vector3
(touchPos
.x, touchPos
.y, TargetingCursor
.transform.position.z); }
}