Ejemplo n.º 1
0
 public void SetModelWithSkill(int modelId, int skillId, Action actionEnd)
 {
     this.m_modelId = modelId;
     if (this.m_actorModel == null)
     {
         this.m_actorModel = this.GetAM();
     }
     if (skillId > 0)
     {
         ModelDisplayManager.ShowSkill(this.m_actorModel, skillId, actionEnd);
     }
 }
Ejemplo n.º 2
0
    public static void ShowSkill(int model_uid, int skillId, Action skillEnd = null)
    {
        ActorModel uIModel = ModelDisplayManager.Instance.GetUIModel(model_uid);

        if (uIModel != null)
        {
            ModelDisplayManager.ShowSkill(uIModel, skillId, skillEnd);
        }
        else if (skillEnd != null)
        {
            skillEnd.Invoke();
        }
    }
Ejemplo n.º 3
0
        public override void OnCheckCombo(CheckComboCmd cmd)
        {
            int num = (!ModelDisplayManager.IsAlwaysCombo || !DataReader <Skill> .Contains(this.GetCurrentSkill())) ? 0 : DataReader <Skill> .Get(this.GetCurrentSkill()).combo;

            if (num != 0)
            {
                ModelDisplayManager.ShowSkill(this, num, delegate
                {
                    CurrenciesUIViewModel.Show(true);
                    PetBasicUIView.Instance.SetRawImageModelLayer(false, true, false);
                });
            }
        }
Ejemplo n.º 4
0
 private void PlayPetSKill(int SkillId)
 {
     EventDispatcher.Broadcast("UIManagerControl.HideTipsUI");
     if (SkillId <= 0)
     {
         return;
     }
     CurrenciesUIViewModel.Show(false);
     PetBasicUIView.Instance.SetRawImageModelLayer(true, true, false);
     ModelDisplayManager.ShowSkill(PetBasicUIViewModel.PetModelUID, SkillId, delegate
     {
         CurrenciesUIViewModel.Show(true);
         PetBasicUIView.Instance.SetRawImageModelLayer(false, true, false);
     });
 }