public void SetBoxInfo(TeamCharInfo info) { CharBoxInfo newInfo = new CharBoxInfo(info); _charImg.sprite = newInfo.charSprite; BoxInfo = newInfo; }
public CharBoxInfo(TeamCharInfo info) { charInfo = info; modelInfo = InfoManager.Instance.modelDic[charInfo.modelID]; charSprite = ResourceManager.Instance.GetSprite(ResourceManager.SpriteType.Models, modelInfo.imgName); levelText = charInfo.level.ToString(); LinkedBox = null; }
protected override void SetCharInfo(CharacterInfo charInfo) { charInfo.charType = CharType.Player; TeamCharInfo teamInfo = InfoManager.Instance.teamInfoDic[playerIDList[index]]; ModelInfo modelInfo = InfoManager.Instance.modelDic[teamInfo.modelID]; charInfo.maxHp = teamInfo.maxHp; charInfo.power = teamInfo.power; charInfo.defence = teamInfo.defence; charInfo.modelID = modelInfo.modelID; charInfo.attackIDs = modelInfo.skillIDs; }
public void ShowProfile(CharBoxInfo info) { _instructionObj.SetActive(false); _profileObj.SetActive(true); TeamCharInfo charInfo = info.charInfo; ModelInfo modelInfo = info.modelInfo; _profile.modelImg.sprite = ResourceManager.Instance.GetSprite(ResourceManager.SpriteType.Models, modelInfo.imgName); _profile.modelName.text = modelInfo.modelName; _profile.level.text = info.levelText; _profile.maxHp.text = charInfo.maxHp.ToString(); _profile.attack.text = charInfo.power.ToString(); }