public override void OnUse() { base.OnUse(); this.bManaged = true; this.lifeTime = 0; this.bDeadRemove = false; this.cfgData = null; }
public override void OnRelease() { this.bManaged = true; this.lifeTime = 0; this.bDeadRemove = false; this.cfgData = null; this.bulletTypeId = 0; base.OnRelease(); }
private void AddActionsFromSkill(DictionaryView <string, AGE.Action> actions, int skillID) { if (skillID > 0) { ResSkillCfgInfo dataByKey = GameDataMgr.skillDatabin.GetDataByKey((long)skillID); if (dataByKey != null) { this.AddAction(actions, dataByKey.szPrefab); string key = StringHelper.UTF8BytesToString(ref dataByKey.szGuidePrefab); if ((key != null) && !this.prefabDict.ContainsKey(key)) { this.prefabDict.Add(key, false); } if (dataByKey.dwIsBullet != 0) { ResBulletCfgInfo info2 = GameDataMgr.bulletDatabin.GetDataByKey((long)dataByKey.iBulletID); if (info2 != null) { this.AddAction(actions, info2.szPrefab); } } } } }