void SetupIngameCamera() { var defaultCameraToSpawnObject = Instantiate(ingameCameraToSpawn) as GameObject; cameraApplicator = defaultCameraToSpawnObject.GetComponent <LogicCameraInfoApplicator>(); DebugUtilities.Assert(cameraApplicator != null, "Must have PlayerCamera component on this camera"); }
void Awake() { logicCameraInfoApplicator = Camera.main.gameObject.GetComponent <LogicCameraInfoApplicator>(); }