I’m trying to make a game where my levels are triggered based on if my player object(and only my player object) is touching the specific trigger. But, my code is giving me errors. Help?
`using UnityEngine;
using System.Collections;
public class LevelProgress : MonoBehaviour
{
public GameObject LevelProgressor;
void OnTriggerEnter(Collider other)
{
if(other.GetComponent = LevelProgressor)
{
Application.LoadLevel(“jetbikeTutorial2”);
}
}
}’