33 lines
698 B
C#
33 lines
698 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class LevelKuis : MonoBehaviour
|
|
{
|
|
public Button buttonLevel2;
|
|
public Button buttonLevel3;
|
|
|
|
void Start()
|
|
{
|
|
CheckLevel();
|
|
}
|
|
|
|
public void CheckLevel()
|
|
{
|
|
int statusLevel2 = PlayerPrefs.GetInt("Level2");
|
|
int statusLevel3 = PlayerPrefs.GetInt("Level3");
|
|
|
|
if (statusLevel2 == 1)
|
|
buttonLevel2.interactable = true;
|
|
else
|
|
buttonLevel2.interactable = false;
|
|
|
|
if (statusLevel3 == 1)
|
|
buttonLevel3.interactable = true;
|
|
else
|
|
buttonLevel3.interactable = false;
|
|
}
|
|
|
|
}
|