private void UpdateForKeyboradInput() { Vector2 zero = Vector2.zero; if (Input.GetKeyUp(KeyCode.Semicolon)) { Singleton <CameraManager> .Instance.GetMainCamera().SetRotateToFaceDirection(); } if (Input.GetKeyDown(KeyCode.Alpha8)) { Singleton <AvatarManager> .Instance.GetLocalAvatar().SetTrigger("TriggerHit"); } if (Input.GetKeyDown(KeyCode.Alpha9)) { BaseMonoAvatar localAvatar = Singleton <AvatarManager> .Instance.GetLocalAvatar(); localAvatar.SetTrigger("TriggerHit"); localAvatar.SetTrigger("TriggerKnockDown"); } if (Input.GetKeyDown(KeyCode.Alpha0)) { Singleton <AvatarManager> .Instance.GetLocalAvatar().SetDied(KillEffect.KillNow); } if (Input.GetKeyDown(KeyCode.Alpha1)) { List <BaseMonoMonster> allMonsters = Singleton <MonsterManager> .Instance.GetAllMonsters(); if (allMonsters.Count > 0) { Singleton <CameraManager> .Instance.EnableBossCamera(allMonsters[0].GetRuntimeID()); } } if (Input.GetKeyDown(KeyCode.Alpha2)) { Singleton <CameraManager> .Instance.DisableBossCamera(); } if (Input.GetKeyDown(KeyCode.Alpha3)) { Singleton <CameraManager> .Instance.controlledRotateKeepManual = !Singleton <CameraManager> .Instance.controlledRotateKeepManual; } if (Input.GetKeyDown(KeyCode.Alpha4)) { Singleton <CameraManager> .Instance.EnableCrowdCamera(); } if (Input.GetKey(KeyCode.Keypad4)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2((-300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime, 0f); } if (Input.GetKey(KeyCode.Keypad6)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2((300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime, 0f); } if (Input.GetKey(KeyCode.Keypad8)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2(0f, (300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime); } if (Input.GetKey(KeyCode.Keypad2)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2(0f, (-300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime); } if (Input.GetKey(KeyCode.Keypad7)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2((-300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime, (300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime); } if (Input.GetKey(KeyCode.Keypad9)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2((300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime, (300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime); } if (Input.GetKey(KeyCode.Keypad1)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2((-300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime, (-300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime); } if (Input.GetKey(KeyCode.Keypad3)) { if (!this.isRotating) { this.isRotating = true; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStart(); } zero += new Vector2((300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime, (-300f * Singleton <LevelManager> .Instance.levelEntity.TimeScale) * Time.deltaTime); } if (((Input.GetKeyUp(KeyCode.Keypad4) || Input.GetKeyUp(KeyCode.Keypad6)) || (Input.GetKeyUp(KeyCode.Keypad8) || Input.GetKeyUp(KeyCode.Keypad5))) || ((Input.GetKeyUp(KeyCode.Keypad7) || Input.GetKeyUp(KeyCode.Keypad9)) || ((Input.GetKeyUp(KeyCode.Keypad1) || Input.GetKeyUp(KeyCode.Keypad2)) || Input.GetKeyUp(KeyCode.Keypad3)))) { this.isRotating = false; Singleton <CameraManager> .Instance.GetMainCamera().FollowControlledRotateStop(); } if (this.isRotating) { Singleton <CameraManager> .Instance.GetMainCamera().SetFollowControledRotationData(zero); } if (Input.GetKey(KeyCode.KeypadPlus) && !Singleton <CameraManager> .Instance.GetMainCamera().storyState.active) { Singleton <CameraManager> .Instance.GetMainCamera().PlayStoryCameraState(0x4e21, true, false, true, true, false); } if (Input.GetKey(KeyCode.KeypadMinus) && Singleton <CameraManager> .Instance.GetMainCamera().storyState.active) { Singleton <CameraManager> .Instance.GetMainCamera().storyState.QuitStoryStateWithFade(0.5f, true, true); } if (Input.GetKey(KeyCode.KeypadMultiply) && Singleton <CameraManager> .Instance.GetMainCamera().storyState.active) { Singleton <CameraManager> .Instance.GetMainCamera().storyState.QuitStoryStateWithLerp(false, 1f, true); } if (Input.GetKey(KeyCode.X)) { Singleton <MainUIManager> .Instance.GetInLevelUICanvas().FadeOutStageTransitPanel(3f, false, null, null); } if (Input.GetKey(KeyCode.C)) { Singleton <MainUIManager> .Instance.GetInLevelUICanvas().FadeInStageTransitPanel(3f, false, null, null); } }