protected override void OnInit() { base.OnInit(); this.data = Singleton <PerformDataManager> .Instance.GetVo(this.performId); this.TryAddBornPowerObjSkillData(); }
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); } }
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; }
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); }
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); } } }
public static bool IsUseSelfCollider(PerformData data) { return(data.colliderRangeType == ColliderRangeType.SelfCollider); }
public static bool IsDamageColliderFollowUnit(PerformData data) { return(data.isDamageColliderFollowUnit); }
public static bool IsAnchorFollowEffect(PerformData data) { return(data.config.effect_pos_type == 2 || data.config.effect_pos_type == 5); }