public static ICamera FindCameraController(Camera cam) { var lst = CameraManager.Instance._cameras; var e = lst.GetEnumerator(); while(e.MoveNext()) { if (e.Current.Contains(cam)) return e.Current; } return cam.AddOrGetComponent<UnityCamera>(); }