Exemple #1
0
 static DispatchUtility()
 {
     instance = new GameObject("NatCam").AddComponent <DispatchUtility>();
     #if UNITY_5_4_OR_NEWER
     SceneManager.sceneLoaded += instance.LevelWasLoaded;
     #endif
     Camera.onPreRender  += instance.PreRender;
     Camera.onPostRender += instance.PostRender;
     instance.CheckOrientation();
 }
 static DispatchUtility()
 {
     instance = new GameObject("NatCam Dispatch Utility").AddComponent <DispatchUtility>();
     instance.StartCoroutine(instance.OnFrame());
 }