예제 #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;
 }