mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 10:21:06 +00:00
25 lines
459 B
C#
25 lines
459 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class SplashController : MonoBehaviour {
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
StartCoroutine(AutoSkip());
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
if (Input.anyKeyDown) {
|
|
Application.LoadLevel(1);
|
|
}
|
|
}
|
|
|
|
IEnumerator AutoSkip() {
|
|
|
|
yield return new WaitForSeconds(5);
|
|
Application.LoadLevel(1);
|
|
|
|
}
|
|
}
|