Every-time I re-load a scene, the material for any pro-builder trigger material appears… the mesh renderer is not turned off. This does not occur when I start the scene, only after re-loading a scene. Here is the script I use to do so…
public class DeathBox : MonoBehaviour {
public string levelName;
private void OnTriggerEnter (Collider other)
{
if (other.gameObject.tag == "Player")
{
SceneManager.LoadScene(levelName, LoadSceneMode.Single);
Debug.Log("Box Hit");
}
}
}
the trigger object does in fact have the pb_TriggerBehaviour script attached… it just only seems to work once…
any help would be appreciated!