void Start() { ShowKassen(); BGMSESwitch bgm = new BGMSESwitch(); bgm.StopSEVolume(); bgm.StopBGMVolume(); }
public void Start() { Resources.UnloadUnusedAssets(); GetLock(); tutorialDoneFlg = PlayerPrefs.GetBool("tutorialDoneFlg"); if (tutorialDoneFlg) { string userId = PlayerPrefs.GetString("userId"); GetBanCount(userId); } fade = GameObject.Find("FadeCanvas").GetComponent <Fade>(); /*Sound Controller Start*/ if (GameObject.Find("BGMController") == null) { string bgmPath = "Prefabs/Common/SoundController/BGMController"; GameObject bgmObj = Instantiate(Resources.Load(bgmPath)) as GameObject; bgmObj.name = "BGMController"; } if (GameObject.Find("SEController") == null) { string sePath = "Prefabs/Common/SoundController/SEController"; GameObject seObj = Instantiate(Resources.Load(sePath)) as GameObject; seObj.name = "SEController"; } BGMSESwitch bgm = GetComponent <BGMSESwitch> (); bgm.StopSEVolume(); bgm.StopBGMVolume(); /*Sound Controller End*/ string versionNo = Application.version; GameObject.Find("Ver").GetComponent <Text>().text = versionNo; }