// bool to check if camera is looking at target //x private bool lookAt = true; private void Start() { fPSChange = player.GetComponent <FPSChange>(); checkEntityAccess = GameObject.Find("GameManager").GetComponent <CheckEntityAccess>(); xRotate = GameObject.Find("Player").transform.eulerAngles.y; }
// Use this for initialization void Start() { gunPickedUp.SetActive(false); fPSChange = player.GetComponent <FPSChange>(); }
// Use this for initialization void Start() { // get player fpschange reference fPSChange = this.GetComponent <FPSChange>(); }