public HeroAi(Hero hero) : base(hero) { _hero = hero; skillTplData = TemplateManager.GetSkillTplData(_autoSkillId); _heroInfo = _hero.GetRoleInfo() as HeroInfo; _heroInfo.addListener(EventBase.CHANGE, OnHeroInfoChange); _releasedTimeCount = -1; OnHeroInfoChange(null); }