Пример #1
0
    void Update()
    {
        try
        {
            // disable joyStick while loading
            if (JoyStickInputProvider.JoyStickEnable)
            {
                JoyStickInputProvider.JoyStickEnable = false;
            }

            // enable decrate icon when first time loading start
            if (sign1 && LogicSystem.GetLoadingProgress() > 0)
            {
                sign1 = false;
                UnityEngine.Transform tf = gameObject.transform.Find("Background/Panel/Icon");
                if (tf != null)
                {
                    NGUITools.SetActive(tf.gameObject, true);
                }
            }

            // loading end, begin destroy stage
            if (sign2)
            {
                time += RealTime.deltaTime;
                if (time >= 2.0f)
                {
                    DestoryLoading();
                }
            }
        }
        catch (System.Exception ex)
        {
            ArkCrossEngine.LogicSystem.LogErrorFromGfx("Exception {0}\n{1}", ex.Message, ex.StackTrace);
        }
    }