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