Inheritance: S5Application
Example #1
0
	void Start()
	{
        mApp = new CapsApplication();
        mApp.mCoroutineStarter = this;
		DontDestroyOnLoad(GameObject.Find("GlobalObject"));
		mApp.Init();
	}
Example #2
0
 void Start()
 {
     mApp = new CapsApplication();
     mApp.mCoroutineStarter = this;
     DontDestroyOnLoad(GameObject.Find("GlobalObject"));
     mApp.Init();
 }
Example #3
0
 public CapsApplication()
 {
     if (Singleton == null)
     {
         Singleton = this;
     }
     else
     {
         throw new System.Exception();			//if singleton exist, throw a Exception
     }
 }
Example #4
0
 public CapsApplication()
 {
     if (Singleton == null)
     {
         Singleton = this;
     }
     else
     {
         throw new System.Exception();                       //if singleton exist, throw a Exception
     }
 }