// Start is called before the first frame update public virtual void Start() { playerNoiseManager = GetComponentInParent <PlayerNoise>(); tpcc = GetComponentInParent <ThirdPersonCharacterController>(); currentCamera = tpcc.currentCamera; thirdPersonCamFlag = tpcc.IsThirdPersonCameraActive(); currentAmmo = maxAmmo; //aƱadimos este observer ao subject pause GameHandler.instance.RegisterObserverPause(this); }
public void updateCamera() { // Depending on the camera, the crosshair may change currentCamera = tpcc.currentCamera; thirdPersonCamFlag = tpcc.IsThirdPersonCameraActive(); }