Esempio n. 1
0
 public override void OnActivate(int pinID)
 {
     if (pinID != 100)
     {
         return;
     }
     if (BootLoader.BootStates == BootLoader.BootState.SUCCESS)
     {
         ((Behaviour)this).set_enabled(false);
         this.ActivateOutputLinks(10);
     }
     else
     {
         if (GameUtility.Config_UseDevServer.Value)
         {
             Network.SetDefaultHostConfigured(GameUtility.DevServerSetting);
         }
         else if (GameUtility.Config_UseAwsServer.Value)
         {
             Network.SetDefaultHostConfigured("https://alchemist.gu3.jp/");
         }
         Network.Mode = Network.EConnectMode.Online;
         string    str       = "grdev";
         TextAsset textAsset = (TextAsset)Resources.Load <TextAsset>("networkver");
         if (Object.op_Inequality((Object)textAsset, (Object)null))
         {
             str = textAsset.get_text();
         }
         Network.Version = str;
         ((Behaviour)this).set_enabled(true);
         BootLoader.GscInit();
     }
 }
Esempio n. 2
0
        private new void Awake()
        {
            // ISSUE: reference to a compiler-generated field
            if (SceneStartup.\u003C\u003Ef__am\u0024cache2 == null)
            {
                // ISSUE: reference to a compiler-generated field
                // ISSUE: method pointer
                SceneStartup.\u003C\u003Ef__am\u0024cache2 = new Application.AdvertisingIdentifierCallback((object)null, __methodptr(\u003CAwake\u003Em__1DA));
            }
            // ISSUE: reference to a compiler-generated field
            Application.RequestAdvertisingIdentifierAsync(SceneStartup.\u003C\u003Ef__am\u0024cache2);
            base.Awake();
            MonoSingleton <UrlScheme> .Instance.Ensure();

            MonoSingleton <PaymentManager> .Instance.Ensure();

            MonoSingleton <NetworkError> .Instance.Ensure();

            MonoSingleton <WatchManager> .Instance.Ensure();

            Object.DontDestroyOnLoad(Object.Instantiate(Resources.Load("fillalpha"), Vector3.get_zero(), Quaternion.get_identity()));
            TextAsset textAsset = (TextAsset)Resources.Load <TextAsset>("appserveraddr");

            if (!Object.op_Inequality((Object)textAsset, (Object)null))
            {
                return;
            }
            Network.SetDefaultHostConfigured(textAsset.get_text());
        }
Esempio n. 3
0
        private new void Awake()
        {
            // ISSUE: reference to a compiler-generated field
            if (SceneStartup.\u003C\u003Ef__am\u0024cache2 == null)
            {
                // ISSUE: reference to a compiler-generated field
                // ISSUE: method pointer
                SceneStartup.\u003C\u003Ef__am\u0024cache2 = new Application.AdvertisingIdentifierCallback((object)null, __methodptr(\u003CAwake\u003Em__27D));
            }
            // ISSUE: reference to a compiler-generated field
            if (!Application.RequestAdvertisingIdentifierAsync(SceneStartup.\u003C\u003Ef__am\u0024cache2))
            {
                Debug.Log((object)"advertisingId not supported");
                string device_id = Guid.NewGuid().ToString();
                Debug.Log((object)device_id);
                GameManager.SetDeviceID(device_id);
            }
            base.Awake();
            MonoSingleton <UrlScheme> .Instance.Ensure();

            MonoSingleton <PaymentManager> .Instance.Ensure();

            MonoSingleton <NetworkError> .Instance.Ensure();

            UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object.Instantiate(Resources.Load("fillalpha"), Vector3.get_zero(), Quaternion.get_identity()));
            TextAsset textAsset = (TextAsset)Resources.Load <TextAsset>("appserveraddr");

            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)textAsset, (UnityEngine.Object)null))
            {
                return;
            }
            Network.SetDefaultHostConfigured(textAsset.get_text());
        }
        public override void OnActivate(int pinID)
        {
            string host = "http://localhost:5000/";

            if (pinID == 1)
            {
                Network.SetDefaultHostConfigured(host);
            }
            ((Behaviour)this).set_enabled(false);
            this.ActivateOutputLinks(2);
        }
Esempio n. 5
0
        private new void Awake()
        {
            base.Awake();
            MonoSingleton <UrlScheme> .Instance.Ensure();

            MonoSingleton <PaymentManager> .Instance.Ensure();

            MonoSingleton <NetworkError> .Instance.Ensure();

            MonoSingleton <WatchManager> .Instance.Ensure();

            TextAsset textAsset = (TextAsset)Resources.Load <TextAsset>("appserveraddr");

            if (!Object.op_Inequality((Object)textAsset, (Object)null))
            {
                return;
            }
            Network.SetDefaultHostConfigured(textAsset.get_text());
        }