private void OnLevelWasLoaded(int index)
 {
     if (this.MainNeedsSyncing())
     {
         CameraManager.ForceSyncTaggedMainCamera();
     }
 }
 protected override void OnValidAwake()
 {
     if (this.MainNeedsSyncing())
     {
         CameraManager.ForceSyncTaggedMainCamera();
     }
 }
 private void OnSceneWasLoaded(Scene sc, LoadSceneMode mode)
 {
     if (this.MainNeedsSyncing())
     {
         CameraManager.ForceSyncTaggedMainCamera();
     }
 }
        protected override void OnValidAwake()
        {
            if (this.MainNeedsSyncing())
            {
                CameraManager.ForceSyncTaggedMainCamera();
            }

            SceneManager.sceneLoaded += this.OnSceneWasLoaded;
        }
        private void Register_Imp(ICamera cam)
        {
            if (_cameras.Contains(cam))
            {
                return;
            }

            _cameras.Add(cam);
            if (this.started && this.MainNeedsSyncing())
            {
                CameraManager.ForceSyncTaggedMainCamera();
            }
        }
        private void UnRegister_Imp(ICamera cam)
        {
            if (cam == null)
            {
                return;
            }

            if (_cameras.Contains(cam))
            {
                _cameras.Remove(cam);
            }
            if (_main == cam)
            {
                _main = null;
                if (this.started && !GameLoopEntry.ApplicationClosing)
                {
                    CameraManager.ForceSyncTaggedMainCamera();
                }
            }
        }