private void Update() { currentX += Input.GetAxis("Mouse X"); currentY += Input.GetAxis("Mouse Y"); check = GameObject.Find("Canvas").GetComponent <OnOffUI>(); character = GameObject.Find("CharacterPivot"); cameraOrigin = this.transform.position; }
private void Update() { PlayFootsteps(); check = GameObject.Find("Canvas").GetComponent <OnOffUI>(); }