Example #1
0
        void onLoadComplete(object sender, LoaderEvtArgs <List <WWW> > args)
        {
            // Debug.Log(((List<WWW>)args.data).ElementAt(0).text);

            if (System.Threading.Thread.CurrentThread.ManagedThreadId != 1)
            {
                return;
            }


            //UnityEngine.Debug.Log("WebPlayer " + Path.Combine(Path.Combine(Application.dataPath, "StreamingAssets"), "InputSettings.xml"));



            if (ui != null)//without settingsXML defined =>load them manually and attach them
            {
                InputManager.loadSettingsFromText(args.data.ElementAt(0).text);
                ui.settings = InputManager.Settings;
            }


            manuallyAddStateAndHandlers();
        }
        void onLoadComplete(object sender, LoaderEvtArgs <List <WWW> > args)
        {
            // Debug.Log(((List<WWW>)args.data).ElementAt(0).text);

            if (System.Threading.Thread.CurrentThread.ManagedThreadId != 1)
            {
                return;
            }


            //UnityEngine.Debug.Log("WebPlayer " + Path.Combine(Path.Combine(Application.dataPath, "StreamingAssets"), "InputSettings.xml"));



            if (ui != null)
            {
                InputManager.loadSettingsFromText(args.data.ElementAt(0).text);
                ui.settings = InputManager.Settings;
            }


            //dispatch load complete
            this.m_onLoad.Invoke();
        }
 void onLoadItemComplete(object sender, LoaderEvtArgs<WWW> args)
 {
     // Debug.Log(args.data.text);
 }
 void onLoadError(object sender, LoaderEvtArgs<String> args)
 {
     Debug.Log(args.data);
 }
        void onLoadComplete(object sender, LoaderEvtArgs<List<WWW>> args)
        {
            // Debug.Log(((List<WWW>)args.data).ElementAt(0).text);

            if (System.Threading.Thread.CurrentThread.ManagedThreadId != 1) return;

            //UnityEngine.Debug.Log("WebPlayer " + Path.Combine(Path.Combine(Application.dataPath, "StreamingAssets"), "InputSettings.xml"));

            if (ui != null)//without settingsXML defined =>load them manually and attach them
            {
                InputManager.loadSettingsFromText(args.data.ElementAt(0).text);
                ui.settings = InputManager.Settings;
            }

            manuallyAddStateAndHandlers();
        }
Example #6
0
 void onLoadError(object sender, LoaderEvtArgs <String> args)
 {
     Debug.Log(args.data);
 }
Example #7
0
 void onLoadItemComplete(object sender, LoaderEvtArgs <WWW> args)
 {
     // Debug.Log(args.data.text);
 }
        void onLoadComplete(object sender, LoaderEvtArgs<List<WWW>> args)
        {
            // Debug.Log(((List<WWW>)args.data).ElementAt(0).text);

                if (System.Threading.Thread.CurrentThread.ManagedThreadId != 1) return;

                //UnityEngine.Debug.Log("WebPlayer " + Path.Combine(Path.Combine(Application.dataPath, "StreamingAssets"), "InputSettings.xml"));

                if (ui != null)
                {
                    InputManager.loadSettingsFromText(args.data.ElementAt(0).text);
                    ui.settings = InputManager.Settings;
                }

               //dispatch load complete
                this.m_onLoad.Invoke();
        }