Home > other >  Unity3D generate particle system error
Unity3D generate particle system error

Time:09-21

I put a particle made into Perfabs and then want to let the bullets generated when a particle, but shot after games become caton, error



Below is the code

Public class DestroyByContect: MonoBehaviour {

Public GameObject AstExp;

Void OnTriggerEnter (starts other)
{
If (other) gameObject) tag=="Limit1" | |. Other gameObject. Tag=="Limit2")
{
return;
}
Destroy (other. GameObject);
Destroy (gameObject);
Instantiate (AstExp, transform the position, the transform. The rotation);
}
}

CodePudding user response:

What mistakes?

CodePudding user response:

CodePudding user response:

Why did you find on the original poster, please
  • Related