MIF_E31222823/Assets/SCRIPT/resetscore.cs

15 lines
318 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class resetscore : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
// Reset skor ke 0 saat quiz dimulai
PlayerPrefs.SetInt("skor", 0);
PlayerPrefs.Save();
}
}