Esempio n. 1
0
    /// <summary>
    /// 初始化
    /// </summary>
    public void Init()
    {
        if (m_hasInit)
        {
            return;
        }

        GCSeries.FCore.isGC3000plus = false;
        m_data.Init();

        // MonitorLog();

        //初始是复制模式 切换扩展模式
        if (Data.InitIsCloneProjection)
        {
            F3Device.Screen.ScreenHelper.SetProjection(F3Device.Screen.ScreenHelper.SDC_TOPOLOGY_EXTEND);
            F3Device.DeviceManager.Instance.Refresh();
        }

        m_hasInit             = true;
        Application.quitting += Quitting;

#if !UNITY_EDITOR
        WindowHelper.AutoGC();
#endif

        if (Application.isPlaying)
        {
            globalUpdate = new GameObject("GlobalUpdate");
            UnityEngine.Object.DontDestroyOnLoad(globalUpdate);
            globalUpdate.hideFlags = HideFlags.HideInHierarchy;
            globalUpdate.AddComponent <GlobalUpdate>();
        }
    }