Esempio n. 1
0
    // 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);
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     CombatEntity = new CombatEntity();
     CombatEntity.Initialize();
     CombatEntity.AddListener(CombatActionType.CauseDamage, OnReceiveDamage);
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     CombatEntity = Entity.Create <CombatEntity>();
     CombatEntity.Initialize();
     CombatEntity.AddListener(CombatActionType.ReceiveDamage, OnReceiveDamage);
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     CombatEntity = EntityFactory.Create <CombatEntity>();
     CombatEntity.Initialize();
     CombatEntity.AddListener(ActionPointType.PostReceiveDamage, OnReceiveDamage);
 }