Ejemplo n.º 1
0
        public BattleManager(EntityParent _owner, SkillManager _skillManager)
        {
            theOwner     = _owner;
            skillManager = _skillManager;
            theOwner.AddUniqEventListener <int>(Events.FSMMotionEvent.OnPrepareEnd, OnPrepareEnd);
            theOwner.AddUniqEventListener <int>(Events.FSMMotionEvent.OnAttackingEnd, OnAttackingEnd);
            theOwner.AddUniqEventListener <int>(Events.FSMMotionEvent.OnHitAnimEnd, OnHitAnimEnd);
            theOwner.AddUniqEventListener(Events.FSMMotionEvent.OnRollEnd, OnRollEnd);

            EventDispatcher.AddEventListener <int, uint, uint, List <int> >(Events.FSMMotionEvent.OnHit, OnHit);
        }
Ejemplo n.º 2
0
        public BattleManager(EntityParent _owner, SkillManager _skillManager)
        {
            theOwner = _owner;
            skillManager = _skillManager;
            theOwner.AddUniqEventListener<int>(Events.FSMMotionEvent.OnPrepareEnd, OnPrepareEnd);
            theOwner.AddUniqEventListener<int>(Events.FSMMotionEvent.OnAttackingEnd, OnAttackingEnd);
            theOwner.AddUniqEventListener<int>(Events.FSMMotionEvent.OnHitAnimEnd, OnHitAnimEnd);
            theOwner.AddUniqEventListener(Events.FSMMotionEvent.OnRollEnd, OnRollEnd);

            EventDispatcher.AddEventListener<int, uint, uint, List<int>>(Events.FSMMotionEvent.OnHit, OnHit);
        }