void Start() { if (cam == null) { Debug.LogError("Player Shoot : No Camera Referenced"); this.enabled = false; } weaponManager = GetComponent <CarWeaponManager>(); }
public void SetCar(PlayerObject _car) { car = _car; controller2 = car.GetComponent <CarController>(); weaponManager = car.GetComponent <CarWeaponManager>(); }