Exemplo n.º 1
0
 private void OnUpdateSuperArmorShiled(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)
                 {
                     GfxSystem.PublishGfxEvent("ge_update_monster_sheild", "ui", view.Actor, info.DamageRemain * 1.0f / info.DamageMax);
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
 private void OnStopSuperArmorShiled(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)
                 {
                     GfxSystem.DestroyGameObject(info.EffectActor);
                     GfxSystem.PublishGfxEvent("ge_end_monster_sheild", "ui", view.Actor);
                 }
             }
         }
     }
 }
Exemplo n.º 3
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);
                 }
             }
         }
     }
 }