// Update is called once per frame void Update() { if (cachedSovereignName != GameDataManager.Instance.dataStore.sovereignName) { cachedSovereignName = GameDataManager.Instance.dataStore.sovereignName; sovereignNameLabel.text = strings[0] + GameDataManager.Instance.dataStore.sovereignName; } if (cachedSovereignMugshot != GameDataManager.Instance.dataStore.sovereignMugshot) { cachedSovereignMugshot = GameDataManager.Instance.dataStore.sovereignMugshot; sovereignMugshot.sprite = GameDataManager.Instance.dataStore.sovereignAdventurer.GetMugshotGraphic(); } if (cachedSovereignTactic != GameDataManager.Instance.dataStore.sovereignTactic) { cachedSovereignTactic = GameDataManager.Instance.dataStore.sovereignTactic; sovereignTacticDesc.text = Adventurer.GetAttackDescription(GameDataManager.Instance.dataStore.sovereignTactic); } if (cachedSovereignSpecial != GameDataManager.Instance.dataStore.sovereignSkill) { cachedSovereignSpecial = GameDataManager.Instance.dataStore.sovereignSkill; sovereignSpecialDesc.text = Adventurer.GetSpecialDescription(GameDataManager.Instance.dataStore.sovereignSkill); } if (cachedSovereignTitle != GameDataManager.Instance.dataStore.sovereignAdventurer.fullTitle) { cachedSovereignTitle = GameDataManager.Instance.dataStore.sovereignAdventurer.fullTitle; sovereignTitleArea.text = cachedSovereignTitle; } if (cachedSovereignWpn != GameDataManager.Instance.dataStore.sovWpn_Set) { UpdateTextFieldWithWpnInfo(GameDataManager.Instance.dataStore.sovWpn_Set, ref cachedSovereignWpn, ref strings, ref sovereignWpnArea); } if (rowPlacementButton != null && rowPlacementButton.interactable != (GameDataManager.Instance.dataStore.sovereignEquippedWeaponType == WpnType.Knives)) { rowPlacementButton.interactable = (GameDataManager.Instance.dataStore.sovereignEquippedWeaponType == WpnType.Knives); } if (cachedSovereignRowState != GameDataManager.Instance.dataStore.sovereignOnBackRow) { cachedSovereignRowState = GameDataManager.Instance.dataStore.sovereignOnBackRow; if (cachedSovereignRowState) { rowPlacementArea.text = strings[35]; } else { rowPlacementArea.text = strings[34]; } } }
// Use this for initialization void Start() { flankingText.text = Adventurer.GetAttackDescription(BattlerAction.Flanking); getBehindMeText.text = Adventurer.GetAttackDescription(BattlerAction.GetBehindMe); }