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