// 後方にあるBM98用 void Start() { musicSelectManager = GameObject.Find("MusicSelectManager").GetComponent <MusicSelectManager>(); musicTitleText = GameObject.Find("MusicTitleArea").GetComponent <Text>(); lightCanvas = GameObject.Find("TvCanvas"); recordSetTransform = GameObject.Find("RecordSet").GetComponent <RectTransform>(); oldRecordPos = recordSetTransform.position; audioSource = this.GetComponent <AudioSource>(); audioSource.clip = Resources.Load <AudioClip>("src/MusicSelect/scratch"); }
private void GameSceneReloaded(Scene next, LoadSceneMode mode) { // シーン切り替え後のスクリプトを取得 MusicSelectManager musicSelectManager = GameObject.Find("MusicSelectManager").GetComponent <MusicSelectManager>(); musicSelectManager.setTotalCalorie(this.totalCalorie); musicSelectManager.setTotalFrameCount(this.totalFrameCount); musicSelectManager.setFolderCount(0); musicSelectManager.setMusicFolderPath(this.MUSIC_FOLDER_PATH); musicSelectManager.setCategory(this.category); musicSelectManager.setAvator(this.isAvator); SceneManager.sceneLoaded -= GameSceneReloaded; }
void Start() { ovrGrabbable = this.GetComponent <OVRGrabbable>(); musicSelectManager = GameObject.Find("MusicSelectManager").GetComponent <MusicSelectManager>(); }
// Start is called before the first frame update void Start() { musicSelectManager = GameObject.Find("MusicSelectManager").GetComponent <MusicSelectManager>(); musicSelectCategory = GameObject.Find("CategorySelect").GetComponent <MusicSelectCategory>(); }