コード例 #1
0
    public void SetTexture(string charCode)
    {
        int charKindByCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(charCode);

        string costumePortraitInBattleSoldier = this.GetCostumePortraitInBattleSoldier(charKindByCode);

        this._requestCharPortraitInfo = NkUtil.RequestCharTexture(eCharImageType.LARGE, charKindByCode, -1, new NkUtil.RequestCharPortraitCallback(this.CharPortraitBundleCallback), costumePortraitInBattleSoldier);
        this.SetCharPortrait(this._requestCharPortraitInfo._tex2D);
    }