void Start() { lockMouse = GetComponent <LockMouse>(); pauzeScreen.SetActive(true); Time.timeScale = 0; lockMouse.StartLockingMouse(); }
// Use this for initialization void Start() { playerTransform = PlayerInput.singleton.transform; lockMouse = playerTransform.GetComponentInChildren <LockMouse> (); referenceObj.SetActive(false); toolGUI.SetActive(false); }
//Grab Objects //Interact Objects private void Awake() { playerCamera = cam.transform; websiteUI = FindObjectOfType <WebsiteUI>(); lockMouse = FindObjectOfType <LockMouse>(); }