// @Brief : Initialize
 // @Param : pData   => Character data
 protected override void Initialize(KrCharagekiUICharacterData pData)
 {
     base.Initialize(pData);
     m_pActionSpriteDic = new Dictionary <uint, Sprite>();
     foreach (KeyValuePair <uint, string> pKeyValue in KrCharagekiDef.s_p2D_CHARA_ACTION_IMAGE)
     {
         string pDataPath = KrCharagekiDef.s_pASSET_BASE_PATH + string.Format(pKeyValue.Value, m_pCharaData.GetCharacterId());
         Sprite pSprite   = KrResources.LoadSprite(pDataPath, KrCharagekiDef.IsLoadingFromResources());
         m_pActionSpriteDic.Add(pKeyValue.Key, pSprite);
     }
     Hide();
 }
Esempio n. 2
0
 // @Brief : Load
 public void LoadSprite()
 {
     m_pBgSprite = KrResources.LoadSprite(KrCharagekiDef.s_pASSET_BASE_PATH + m_pImagePath, KrCharagekiDef.IsLoadingFromResources());
 }