void Awake() { foreach (GameObject gameSettingObject in GameObject.FindGameObjectsWithTag("GameSettingObject")) { Destroy(gameSettingObject); } Instantiate(OptionsDataPrefab).GetComponent <OptionSingelton>().gameSettings = OptionsController.GetGameSettings(); }