// Update is called once per frame void Update() { if (Input.GetKey(KeyCode.Keypad0)) { Close(); } if (Input.GetKey(KeyCode.Keypad1)) { Play(); } if (Input.GetKey(KeyCode.Keypad2)) { LightnessUp(); value.SliderOn(1 - mask.color.a); } if (Input.GetKey(KeyCode.Keypad3)) { LightnessDown(); value.SliderOn(1 - mask.color.a); } if (Input.GetKey(KeyCode.Keypad4)) { ScaleUp(); } if (Input.GetKey(KeyCode.Keypad5)) { ScaleDown(); } if (Input.GetKey(KeyCode.A)) { PositionX(false); } if (Input.GetKey(KeyCode.D)) { PositionX(true); } if (Input.GetKey(KeyCode.W)) { PositionY(true); } if (Input.GetKey(KeyCode.S)) { PositionY(false); } if (Input.GetKey(KeyCode.Keypad6)) { EnterMusicPlayer(); } if (Input.GetKey(KeyCode.Keypad7)) { ReturnMainUI(); music_ctr.Stop(); } if (Input.GetKey(KeyCode.Keypad8)) { musicplayer_ui.GetComponent <MusicMod>().modChange(); } if (Input.GetKey(KeyCode.Keypad9)) { MusicPlayPauseToggle(); } if (Input.GetKey(KeyCode.KeypadPlus)) { NextMusic(); } if (Input.GetKey(KeyCode.KeypadMinus)) { PrevMusic(); } if (Input.GetKey(KeyCode.UpArrow)) { MusicVolumeUp(); value.SliderOn(music_ctr.volume); } if (Input.GetKey(KeyCode.DownArrow)) { MusicVolumeDown(); value.SliderOn(music_ctr.volume); } if (Input.GetKey(KeyCode.LeftArrow)) { MusicRateDown(); music_ctr.GetComponent <AudioSource>().time = music_ctr.GetComponent <AudioSource>().time - Time.deltaTime * 20; } if (Input.GetKey(KeyCode.RightArrow)) { MusicRateUp(); music_ctr.GetComponent <AudioSource>().time = music_ctr.GetComponent <AudioSource>().time + Time.deltaTime * 20; } if (Input.GetKeyUp(KeyCode.LeftArrow)) { MusicRate(); } if (Input.GetKeyUp(KeyCode.RightArrow)) { MusicRate(); } if (Input.GetKey(KeyCode.I)) { EnterAirPlayer(); } if (Input.GetKey(KeyCode.O)) { ReturnMainUI(); } if (Input.GetKey(KeyCode.H)) { AirWindDown(); } if (Input.GetKey(KeyCode.K)) { AirWindUp(); } if (Input.GetKey(KeyCode.U)) { TemUp(); } if (Input.GetKey(KeyCode.J)) { TemDown(); } }
public void EnterMusicPlayer() { musicbutton_ui.GetComponent <Animator>().Play("MeticulousLock_SpecialAnim"); musicbutton_ui.Disappear(0); musicplayer_ui.Appear(2); }