MIF_E31211986/Assets/Script/NextLevel.cs

14 lines
301 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NextLevel : MonoBehaviour
{
public LevelManager scriptScene;
public void LevelSelanjutnya(string key)
{
PlayerPrefs.SetInt(key, 1);
scriptScene.LoadToScene("Pilih_Level");
}
}