示例#1
0
    void OnEnable()
    {
        if (!SystemInfo.graphicsDeviceVersion.StartsWith("OpenGL"))
        {
            enabled = false;
            return;
        }

        sdiEnabled  = false;
        IOCoroutine = SdiIOCoroutine();

#if !UNITY_EDITOR
        if (!DvpOptions.Load(DvpOptions.ConfigFileName, ref options))
        {
            DvpOptions.Save(DvpOptions.ConfigFileName, options);
        }
#endif

        StartCoroutine(IOCoroutine);
    }