public void FocusOnApparatus(BaseApparatus apparatus, Transform targetPivot, Transform targetCamTrsf, float animTime) { CurrentApparatus = apparatus; State = GameStateTypes.Quest; CamCtrl.SwitchToOrbitCam(targetPivot, targetCamTrsf, animTime); OnFocusToApparatus?.Invoke(apparatus); }
public void ReturnToFps() { if (State == GameStateTypes.QuestToFPS) { return; } State = GameStateTypes.QuestToFPS; CamCtrl.SwitchToFpsCam(_camAnimTime, onComplete: () => { State = GameStateTypes.FPS; OnFocusToApparatus?.Invoke(null); }); CurrentApparatus = null; BeamsCtrl.SwitchMainBeamLoop(MainBeamState.NONE); }