public void DisableBossCamera() { MonoMainCamera mainCamera = Singleton <CameraManager> .Instance.GetMainCamera(); mainCamera.followState.TransitBaseState(mainCamera.followState.followAvatarState, true); if (!mainCamera.followState.isCameraLocateRatioUserDefined) { mainCamera.SetCameraLocateRatio(0.535f); } }
public void EnableBossCamera(uint targetId) { BaseMonoEntity monsterByRuntimeID = Singleton <MonsterManager> .Instance.GetMonsterByRuntimeID(targetId); if (monsterByRuntimeID != null) { MonoMainCamera mainCamera = Singleton <CameraManager> .Instance.GetMainCamera(); mainCamera.followState.TransitBaseState(mainCamera.followState.followAvatarAndBossState, false); mainCamera.followState.followAvatarAndBossState.bossTarget = monsterByRuntimeID; if (!mainCamera.followState.isCameraLocateRatioUserDefined) { mainCamera.SetCameraLocateRatio(0.735f); } } }