Example #1
0
    public void SetBoxInfo(TeamCharInfo info)
    {
        CharBoxInfo newInfo = new CharBoxInfo(info);

        _charImg.sprite = newInfo.charSprite;

        BoxInfo = newInfo;
    }
Example #2
0
    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;
    }
Example #3
0
    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();
    }