private void Refresh() { // Lay danh sach cac Enemys BotNameData bd = GameHelper.GetAllAssetAtPath <BotNameData>(string.Empty, "Assets/Game/Resources/BotNameData")[0]; CountryBotNames = bd.botNames; }
public override void OnInspectorGUI() { base.OnInspectorGUI(); data = (BotNameData)target; GUILayout.Label("ID GG Sheet"); GUILayout.Space(20); GUILayout.BeginHorizontal(); ID = EditorGUILayout.TextField("ID: ", ID); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); SheetName = EditorGUILayout.TextField("SheetName: ", SheetName); GUILayout.EndHorizontal(); GUILayout.Space(20); GUILayout.BeginHorizontal(); if (GUILayout.Button("Retrieving")) { RetrievingData(); } if (GUILayout.Button("Save")) { Save(); } if (GUILayout.Button("Split")) { Split(); } if (GUILayout.Button("Check Im")) { foreach (var countryBotName in data.botNames) { if (countryBotName.icon == null) { Debug.Log(countryBotName.countryName); } } } GUILayout.EndHorizontal(); }