Question by
Aaron_Wong · Jul 08, 2020 at 11:38 PM ·
scripting problemerror messageparticlesystemparticle systemerror-message
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();
}
}
Comment
Your answer
Follow this Question
Related Questions
Get ParticleSystem.SizeOverLifetime curve 0 Answers
Roll a Ball script error?! 2 Answers
Error when setting Rotation 2 Answers