public void Start() { //ハイスコアを表示する hiScoreLabel.text = "Hi-score : " + PlayerPrefs.GetInt("Hiscore") + "pts"; titlesoundEffect = GameObject.Find("TitleSoundController").GetComponent<TitleSoundEffect>(); }
void Awake() { titleSoundEffect = GameObject.Find("TitleSoundEffect").GetComponent<TitleSoundEffect>(); titleBGM = GameObject.Find ("TitleBGM").GetComponent<AudioSource>(); }