示例#1
0
        void Awake()
        {
            Instance = this;

#if (UNITY_ANDROID || UNITY_IPHONE) && !UNITY_EDITOR
            UnitySetGraphicsDevice(System.IntPtr.Zero, (int)GfxDeviceRenderer.kGfxRendererOpenGLES20Mobile, (int)GfxDeviceEventType.kGfxDeviceEventInitialize);
            GL.InvalidateState();
#endif
        }
        void Awake()
        {
            Instance = this;

            #if (UNITY_ANDROID || UNITY_IPHONE) && !UNITY_EDITOR && (UNITY_3_5 || UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3)
            SetGraphicsDevice(System.IntPtr.Zero, (int)GfxDeviceRenderer.kGfxRendererOpenGLES20Mobile, (int)GfxDeviceEventType.kGfxDeviceEventInitialize);
            GL.InvalidateState();
            #endif
        }
 void OnDestroy()
 {
     Instance = null;
 }
示例#4
0
 void OnDestroy()
 {
     Instance = null;
 }