WorldManager singelton

This commit is contained in:
Sophie 2016-04-09 16:33:57 -04:00
parent 4f76ffdc78
commit f966bf235c
2 changed files with 37 additions and 0 deletions

View 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 () {
}
}

View 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: