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