void Start() { mApp = new CapsApplication(); mApp.mCoroutineStarter = this; DontDestroyOnLoad(GameObject.Find("GlobalObject")); mApp.Init(); }
public CapsApplication() { if (Singleton == null) { Singleton = this; } else { throw new System.Exception(); //if singleton exist, throw a Exception } }