mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
WorldManager singelton
This commit is contained in:
parent
4f76ffdc78
commit
f966bf235c
25
Assets/Scripts/WorldManager.cs
Normal file
25
Assets/Scripts/WorldManager.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class WorldManager : MonoBehaviour {
|
||||
|
||||
private static WorldManager instance = null;
|
||||
private WorldManager(){}
|
||||
|
||||
// Use this for initialization
|
||||
public void Awake () {
|
||||
if (!instance)
|
||||
{
|
||||
instance = new WorldManager();
|
||||
}
|
||||
}
|
||||
|
||||
public WorldManager getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
}
|
||||
12
Assets/Scripts/WorldManager.cs.meta
Normal file
12
Assets/Scripts/WorldManager.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3eaea4cf17643ba42939e209672bc39e
|
||||
timeCreated: 1460233556
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
x
Reference in New Issue
Block a user