// Update is called once per frame void Update() { if (HowToFlg) { //Bで消す if (Input.GetKeyDown(KeyCode.Alpha2) || Input.GetKeyDown("joystick button 1")) { HowToFlg = false; HowToButton.Select(); OptMan.AsPlayOs(2); Debug.Log("kokoka"); } } //出したり消したりを反映 HowTo.SetActive(HowToFlg); }
//ボリュームを設定&セーブ public void VolSet() { NowVolume = TargetBar.value; if (this.tag == "BGMBar") { PlayerPrefs.SetInt("VOLUME_BGM", (int)NowVolume); } else if (this.tag == "SEBar") { PlayerPrefs.SetInt("VOLUME_SE", (int)NowVolume); } PlayerPrefs.Save(); //SE鳴らす OptAS.AsPlayOs(0); }