MIF_E31221325/Assets/script/splash.cs

18 lines
350 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
public class splash : MonoBehaviour
{
public float delay = 3f; // Waktu tampilan splash dalam detik
void Start()
{
Invoke("LoadMateriScene", delay);
}
void LoadMateriScene()
{
SceneManager.LoadScene("Materi2"); // Ganti dengan nama scene materi
}
}