Пример #1
0
    void Start()
    {
        if (cam == null)
        {
            Debug.LogError("Player Shoot : No Camera Referenced");
            this.enabled = false;
        }

        weaponManager = GetComponent <CarWeaponManager>();
    }
Пример #2
0
 public void SetCar(PlayerObject _car)
 {
     car           = _car;
     controller2   = car.GetComponent <CarController>();
     weaponManager = car.GetComponent <CarWeaponManager>();
 }