So i just got into C# coding for unity and i cant figure out why this small script crashes unity completely...
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lvl2Unlock : MonoBehaviour
{
void Start()
{
PlayerPrefs.SetInt("Lvl1win" , 1);
Debug.Log("PlayerPref: Lvl1Win : Has Been Created.");
}
}
Video of what happens: https://drive.google.com/file/d/1HMoacpL7hteB0lt8VCJMTUsjQIlwob1G/view?usp=sharing
↧