#pragma strict
using System.Collections;
using UnityEngine;
var maxFallDistance = -10;
using UnityEngine.SceneManagement;
function Update()
{
if (transform.position.y <= maxFallDistance)
{
SceneManager.LoadScene(“First_Level”);
}
}
#pragma strict
using System.Collections;
using UnityEngine;
var maxFallDistance = -10;
using UnityEngine.SceneManagement;
function Update()
{
if (transform.position.y <= maxFallDistance)
{
SceneManager.LoadScene(“First_Level”);
}
}
For some reason it just goes into that wierd form
If anyone can still help me someway pls contact me