Esempio n. 1
0
 public static void AddPreCullEventListener(CameraHook.PreCullEvent e)
 {
     if (e == null)
     {
         return;
     }
     if (Application.get_isPlaying())
     {
         CameraHook.Inject();
     }
     CameraHook.mPreCullEventListeners += e;
 }
Esempio n. 2
0
 private void Start()
 {
     int[] values = (int[])Enum.GetValues(typeof(RenderTextureFormat));
     if (GameUtility.IsDebugBuild)
     {
         string str = string.Empty;
         for (int index = 0; index < values.Length; ++index)
         {
             if (SystemInfo.SupportsRenderTextureFormat((RenderTextureFormat)index))
             {
                 str = str + ((Enum)(object)(RenderTextureFormat)index).ToString() + " ";
             }
         }
         Debug.Log((object)("Supported RenderTexture Formats: " + str));
     }
     CameraHook.Inject();
 }