public void Restart() { pool.HideAllGridChild(); GameManager.manager.distanceMoved = 0; GameManager.manager.coins = 0; for (int i = 0; i < start_tilemaps.Length; i++) { start_tilemaps[i].SetActive(true); start_tilemaps[i].transform.position = new Vector2(-46 + (23 * i), 0); } GameManager.manager.dead = false; GameManager.manager.movingReset = true; GameManager.manager.bossBattle = false; for (int i = 0; i < boss_obj.Length; i++) { boss_obj[i].GetComponent <BossMove>().InstantMove(); } GameManager.manager.bossAppearDist = 500; pool.tileheight = 0; player_death.InstantMove(); quest_giver.Forfeit_Quest(); quest_giver.questNum = Random.Range(0, quest_giver.how_many_quests); quest_giver.Talk_to_Quest_Giver(); quest_giver.showedQuest = false; }