示例#1
0
	void Start ()
	{
		if (Application.isEditor) {
			Debug.LogWarning ("Launchie mustn't run from editor!");
			return;
		}
		
		if ( url == null || url == "" || version == null || version == "" ) {
			Debug.LogWarning ("Launchie `url` and `version` cannot be empty!");
			return;
		}
		
		lgui = (LaunchieGUI)GetComponent("LaunchieGUI");
		
		new System.Threading.Thread (Asyncwork).Start();
	}
示例#2
0
	void Start()
	{
		if( Application.isEditor )
		{
			Debug.LogWarning( "Launchie shouldn't run from editor! It will be explained soon." );
			return;
		}
		
		if( url == null || url == "" || version == null || version == "" )
		{
			Debug.LogWarning( "Launchie `url` and `version` cannot be empty!" );
			return;
		}
		
		lgui = (LaunchieGUI)GetComponent( "LaunchieGUI" );
		eh = (ErrorHandler)GetComponent( "ErrorHandler" );
		eh_exists = ( eh != null );
		
		new Thread( waitTime ).Start();
	}