Quantcast
Viewing all articles
Browse latest Browse all 2891

Particle System trigger script not working,Particle system trigger script not working

Hello everybody. I am trying to make my particle system trigger when there is a collision. It seems there is nothing wrong except that Visual Studio says "Identifier expected". I am a beginner with Unity, so can somebody please help? Below is my code. using System.Collections; using System.Collections.Generic; using UnityEngine; functionUnityEngine; function OnTriggerEnter(col="Collider")OnTriggerEnter(col="Collider") { if (gameObject.tag == "Player")"Player") { particle.Play(); } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles