public void GSDKStartCallback(string config)
        {
            GSDKUtils.Logger("config: " + config);
            string[] array = config.Split(new char[]
            {
                '|'
            });
            if (array.Length != 4)
            {
                return;
            }
            int    num     = 20;
            int    num2    = 3000;
            string message = array[1];
            int    num3;
            bool   flag = int.TryParse(array[0], out num3) && int.TryParse(array[2], out num) && int.TryParse(array[3], out num2);

            if (num3 != 0)
            {
                MonoBehaviour.print(message);
            }
            else if (flag && num > 0 && num2 >= 0)
            {
                GSDK.StartFps(0 - num, num2);
            }
        }
Esempio n. 2
0
 internal static void notify(StartSpeedRet ret)
 {
     if (GSDK.sSpeedNotifyEvent != null)
     {
         GSDK.sSpeedNotifyEvent(ret);
     }
 }
Esempio n. 3
0
 internal static void notify(KartinRet ret)
 {
     if (GSDK.sKartinNotifyEvent != null)
     {
         GSDK.sKartinNotifyEvent(ret);
     }
 }
        public void OnStartSpeedNotify(int type, int flag, string desc)
        {
            StartSpeedRet ret = new StartSpeedRet(type, flag, desc);

            GSDK.notify(ret);
        }
Esempio n. 5
0
        public void OnQueryKartinNotify(string _tag, int _flag, string _desc, int _jump_network, int _jump_signal, int _jump_router, int _router_status, string _router_desc, int _jump_export, int _export_status, string _export_desc, int _jump_terminal, int _terminal_status, string _terminal_desc, int _jump_proxy, int _jump_edge, string _signal_desc, int _signal_status)
        {
            KartinRet ret = new KartinRet(_tag, _flag, _desc, _jump_network, _jump_signal, _jump_router, _router_status, _router_desc, _jump_export, _export_status, _export_desc, _jump_terminal, _terminal_status, _terminal_desc, _jump_proxy, _jump_edge, _signal_desc, _signal_status);

            GSDK.notify(ret);
        }