Beispiel #1
0
    // Start is called before the first frame update
    private new void Start()
    {
        base.Start();
        CarCreated?.Invoke(this);
        carAIChase     = GetComponent <AICarChase>();
        controllingCar = GetComponent <CarPhysics>();

        //Start Siren Sound
        if (sirenSource & sirenSound)
        {
            sirenSource.PlaySFXLoop(sirenSound);
        }
    }
Beispiel #2
0
 protected virtual void OnCarCreated(string model, CarType carType)
 {
     CarCreated?.Invoke(this, model, carType);
 }