private void Start() { UpdateScore(); remainingLives = startingLives; remainingEnemyCount = enemyCountPerWave; sc = Soundcontroller.FindSoundController(); }
Soundcontroller soucon; //宣言 void Start() { GameObject gg_box = GameObject.Find("soundcontroller"); soucon = gg_box.GetComponent <Soundcontroller>(); audioSource01 = gg_soundbox01.GetComponent <AudioSource>(); audioSource02 = gg_soundbox02.GetComponent <AudioSource>(); }
private void Start() { UpdateScore(); remainingLives = startingLives; sc = Soundcontroller.FindSoundController(); }