public static void AddPreCullEventListener(CameraHook.PreCullEvent e) { if (e == null) { return; } if (Application.get_isPlaying()) { CameraHook.Inject(); } CameraHook.mPreCullEventListeners += e; }
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(); }