コード例 #1
0
 private void OnStartSuperArmorShiled(CharacterInfo obj, int impactId)
 {
     if (null != obj)
     {
         CharacterView view = EntityManager.Instance.GetCharacterViewById(obj.GetId());
         if (null != view)
         {
             ImpactInfo impactInfo = obj.GetSkillStateInfo().GetImpactInfoById(impactId);
             if (null != impactInfo)
             {
                 ImpactLogic_SuperArmorShield.SuperArmorShieldInfo info = impactInfo.LogicDatas.GetData <ImpactLogic_SuperArmorShield.SuperArmorShieldInfo>();
                 if (null != info)
                 {
                     info.EffectActor = GameObjectIdManager.Instance.GenNextId();
                     GfxSystem.CreateGameObjectForAttach(info.EffectActor, info.EffectPath);
                     GfxSystem.AttachGameObject(info.EffectActor, view.Actor);
                     GfxSystem.PublishGfxEvent("ge_start_monster_sheild", "ui", view.Actor, 0);
                 }
             }
         }
     }
 }