/// <summary> /// saat dipanggil akan DeadMenu akan ditutup dan akan mengulang semua arena dari awal /// /// </summary> public void reset() { deadMenuScreen.gameObject.SetActive(false); list = FindObjectsOfType <Destroyer> (); int i; for (i = 0; i < list.Length; i++) { Destroy(list[i].gameObject); } thePlayer.transform.position = playerStartPoint; platformGenerator.position = platformStartPoint; obsController.reStart(); thePlayer.setToStart(); if (deathSoundEffect.isPlaying) { deathSoundEffect.Stop(); } thePlayer.gameObject.SetActive(true); }