mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
splash script
This commit is contained in:
parent
9c3a06dd56
commit
f8d9c4e606
19
Assets/Scripts/loadLevel.cs
Normal file
19
Assets/Scripts/loadLevel.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using System.Collections;
|
||||||
|
|
||||||
|
public class loadLevel : MonoBehaviour
|
||||||
|
{
|
||||||
|
public int timeToWait = 2;
|
||||||
|
// Use this for initialization
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
Invoke("NextScene", timeToWait);
|
||||||
|
}
|
||||||
|
|
||||||
|
void NextScene()
|
||||||
|
{
|
||||||
|
Application.LoadLevel("Gameplay");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
12
Assets/Scripts/loadLevel.cs.meta
Normal file
12
Assets/Scripts/loadLevel.cs.meta
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2931322f1f0c62f40b2d7a6e493934ca
|
||||||
|
timeCreated: 1439741672
|
||||||
|
licenseType: Free
|
||||||
|
MonoImporter:
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Loading…
x
Reference in New Issue
Block a user