static public void God_Scene() { godType = GodTypes.Neutre; load_deck = false; pathfile = ""; Application.LoadLevel("Dieu"); }
public void Load_Deck_File(string path) { int value; GodTypes type = GodTypes.Neutre; string data = File.ReadAllText(path); string[] ids = data.Split(","[0]); int index = 0; foreach (string id in ids) { int.TryParse(id, out value); for (int i = 0; i < Data_All.SIZE_TAB; i++) { if (Data_All.data_tab[i].Id == value) { index = i; if (Data_All.data_tab[index].GodType != (int)GodTypes.Neutre && Data_All.data_tab[index].GodType != (int)type) { type = (GodTypes)Data_All.data_tab[index].GodType; } break; } } deck_manager.Add_Card(index); } Scene_Manager.godType = type; }
public void Deck_Scene(int type) { godType = (GodTypes)type; Application.LoadLevel("Card"); }