gutterball-3/Gutterball 3/Assets/Scripts/Splash.cs
SkunkStudios 71779ef7ac New Version 1.6
New 125 balls & powerups.
Improved graphics.
2025-05-07 06:18:40 +07:00

44 lines
1.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Splash : MonoBehaviour
{
public GameObject splashScreen;
public GameObject activisionScreen;
public GameObject ronkatScreen;
public GameObject warningScreen;
public GameObject loadScreen;
// Use this for initialization
void Start ()
{
StartCoroutine(StartSplash());
}
// Update is called once per frame
void Update ()
{
}
IEnumerator StartSplash()
{
yield return new WaitForSeconds(1.5f);
splashScreen.SetActive(true);
yield return new WaitForSeconds(30f);
splashScreen.SetActive(false);
activisionScreen.SetActive(true);
yield return new WaitForSeconds(18f);
activisionScreen.SetActive(false);
ronkatScreen.SetActive(true);
yield return new WaitForSeconds(18f);
ronkatScreen.SetActive(false);
warningScreen.SetActive(true);
yield return new WaitForSeconds(18f);
warningScreen.SetActive(false);
loadScreen.SetActive(true);
SceneManager.LoadScene(1);
}
}