Пример #1
0
		void Awake()
		{
			//Instantiate the context, passing it this instance and a 'true' for autoStartup.
			//You might pass 'false' if you needed to await some kind of asynchronous bootstrapping
			//before launching the app. In that case, you would have to call Context's Launch()
			//method manually.
			context = new MyFirstContext(this, true);
			context.Start ();
		}
Пример #2
0
 void Awake()
 {
     //Instantiate the context, passing it this instance and a 'true' for autoStartup.
     //You might pass 'false' if you needed to await some kind of asynchronous bootstrapping
     //before launching the app. In that case, you would have to call Context's Launch()
     //method manually.
     context = new MyFirstContext(this, true);
     context.Start();
 }
Пример #3
0
 void Awake()
 {
     context = new MyFirstContext(this, true);
     context.Start();
 }