mirror of
https://github.com/imperialsushi/gutterball-3.git
synced 2025-06-15 05:07:42 +00:00
44 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|