예제 #1
0
        protected override void OnInit()
        {
            base.OnInit();
            this.data = Singleton <PerformDataManager> .Instance.GetVo(this.performId);

            this.TryAddBornPowerObjSkillData();
        }
예제 #2
0
 protected override void OnInit()
 {
     base.OnInit();
     this.skillData = GameManager.Instance.SkillData.GetData(this.skillKey);
     if (StringUtils.CheckValid(this.performId))
     {
         this.performData = Singleton <PerformDataManager> .Instance.GetVo(this.performId);
     }
 }
예제 #3
0
        protected override void OnInit()
        {
            base.OnInit();
            this.data = Singleton <PerformDataManager> .Instance.GetVo(this.performId);

            this.actionDelayTime = this.data.config.action_delay;
            this.actionType      = this.data.action_type;
            this.actionTime      = this.data.config.action_time;
        }
예제 #4
0
 public static float GetPerformEffectDelay(Units actionUnit, PerformData performData)
 {
     if (performData == null)
     {
         return(0f);
     }
     if (actionUnit != null && actionUnit.IsInAttack)
     {
         return(performData.config.effect_delay / actionUnit.animController.GetMecanim().animator.speed);
     }
     return(performData.config.effect_delay);
 }
예제 #5
0
 public void ParseTables()
 {
     if (!this.isParseTable)
     {
         Dictionary <string, object> dicByType = BaseDataMgr.instance.GetDicByType <SysSkillPerformVo>();
         if (dicByType == null)
         {
             Debug.LogError("==> SysSkillPerformVo is NULL !!");
             return;
         }
         this.isParseTable = true;
         this._dataVos.Clear();
         Dictionary <string, object> .Enumerator enumerator = dicByType.GetEnumerator();
         while (enumerator.MoveNext())
         {
             KeyValuePair <string, object> current = enumerator.Current;
             string key = current.Key;
             KeyValuePair <string, object> current2   = enumerator.Current;
             SysSkillPerformVo             perform_vo = current2.Value as SysSkillPerformVo;
             PerformData value = new PerformData(key, perform_vo);
             this._dataVos.Add(key, value);
         }
     }
 }
예제 #6
0
 public static bool IsUseSelfCollider(PerformData data)
 {
     return(data.colliderRangeType == ColliderRangeType.SelfCollider);
 }
예제 #7
0
 public static bool IsDamageColliderFollowUnit(PerformData data)
 {
     return(data.isDamageColliderFollowUnit);
 }
예제 #8
0
 public static bool IsAnchorFollowEffect(PerformData data)
 {
     return(data.config.effect_pos_type == 2 || data.config.effect_pos_type == 5);
 }