// Start is called before the first frame update void Start() { CombatEntity = EntityFactory.Create <CombatEntity>(); CombatEntity.Initialize(); CombatEntity.AddListener(ActionPointType.PostReceiveDamage, OnReceiveDamage); CombatEntity.AddListener(ActionPointType.PostReceiveCure, OnReceiveCure); var config = Resources.Load <SkillConfigObject>("SkillConfigs/Skill_1004_坚韧"); var abilityA = CombatEntity.AttachSkill <PassiveSkill1004Entity>(config); }
// Start is called before the first frame update void Start() { CombatEntity = new CombatEntity(); CombatEntity.Initialize(); CombatEntity.AddListener(CombatActionType.CauseDamage, OnReceiveDamage); }
// Start is called before the first frame update void Start() { CombatEntity = Entity.Create <CombatEntity>(); CombatEntity.Initialize(); CombatEntity.AddListener(CombatActionType.ReceiveDamage, OnReceiveDamage); }
// Start is called before the first frame update void Start() { CombatEntity = EntityFactory.Create <CombatEntity>(); CombatEntity.Initialize(); CombatEntity.AddListener(ActionPointType.PostReceiveDamage, OnReceiveDamage); }