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();
}
}
↧