Its not getting the script here called ds on entering the trigger area. It detects the collider that hits it though I checked.
What it does is act as a trigger for an area of sand which your player passes over. Once within the area it is supposed to instantiate the particles at the transforms set in the vehicle.
So yeah whats going on?
Code:
public ParticleEmitter groundTrailParticle;
}
void OnTriggerEnter(Collider other){
if(other.tag == "car"){
groundTrailParticle.enabled = true;
//The problem starts here.
CarController ds = other.GetComponent<CarController>();
for(int i = 0; i < ds.wFx.Length; i++){
Instantiate(groundTrailParticle, ds.wFx_.position, ds.wFx*.rotation); *_
* }*
* }*