private void ChangeBossTachie(int bossCode) { // show boss tachie // change dropdown options Debug.Log($"MenuFunction ChangeBossTachie: To {(SupportedBoss)bossCode}"); SupportedBoss boss = (SupportedBoss)bossCode; tachieImage.sprite = Resources.Load <Sprite>(Constants.GameSystem.boss2meta[boss].tachieFileName); tachieImage.SetNativeSize(); tachieImage.transform.localScale = Constants.GameSystem.boss2meta[boss].tachieLocalScale; }
void InitStratDropdown() { stratDropdown.ClearOptions(); SupportedBoss boss = (SupportedBoss)bossDropdown.value; var dictStruct = Constants.GameSystem.boss2meta[boss]; var strats = dictStruct.strats; List <string> stratNames = new List <string>(); foreach (Strategy strategy in strats) { stratNames.Add(strategy.name); } stratDropdown.AddOptions(stratNames); }
public ScenarioDictStruct(SupportedBoss boss, System.Type type, List <Strategy> s, Dictionary <SupportedLang, string> namePairs, Vector3 tachieLocalScale) { this.boss = boss; scenarioType = type; strats = s; tachieFileName = $"{menuTachiePrefix}/{boss.ToString()}_paint"; headFileName = $"{menuTachiePrefix}/{boss.ToString()}_head_paint"; // Debug.Log($"ScenarioDictStruct: {tachieFileName}, {headFileName}"); bossNameMultiLanguage = namePairs; this.tachieLocalScale = tachieLocalScale; modelPrefabPath = $"battle_misc/{boss.ToString()}_prefab"; animControllerPath = $"scenarios/{boss.ToString()}/scenarioController"; Debug.Log($"ScenarioDictStruct: {animControllerPath}"); }
public void OnBossButtonPressed() { // save info Debug.Log($"MenuFunction OnBossButtonPressed."); SupportedBoss boss = (SupportedBoss)bossDropdown.value; gameManager.strategy = Constants.GameSystem.boss2meta[boss].strats[stratDropdown.value]; Debug.Log($"MenuFunction OnBossButtonPressed: Strat {gameManager.strategy.name}"); string phaseDescription = phaseDropdown.options[phaseDropdown.value].text; Debug.Log($"MenuFunction OnBossButtonPressed: Phase {phaseDescription}"); string[] parts = phaseDescription.Split(':'); gameManager.phase = System.Int32.Parse(parts[0].Substring(1)); Debug.Log($"MenuFunction OnBossButtonPressed: Phase {gameManager.phase}"); Debug.Log($"MenuFunction OnBossButtonPressed: Position {posDropdown.value}"); gameManager.playerPos = (SinglePlayer.StratPosition)posDropdown.value; FadeOutUI(); }
public BattlePhase(SupportedBoss boss, string name, bool chosableInMenu) { this.boss = boss; this.name = name; this.chosableInMenu = chosableInMenu; }