Esempio n. 1
0
        public override void OnEnter(BlackBoard blackboard)
        {
            LogEnter();
            EntityExportToTargetData data = EventDataFactory.Pop <EntityExportToTargetData>();

            _export_to_target_damage(data, blackboard as EntityBlackBoard);
            EventDataFactory.Push(data);
            Finish();
        }
Esempio n. 2
0
 public void RaiseEvent(E_EntityInTrigger key, EventSetData objInfo)
 {
     SkillLog.Assert(_context != null && _context._owner != null, "SequenceLeafNode RaiseEvent:[{0}] Fail", key);
     if (_context == null || _context._owner == null)
     {
         return;
     }
     _context._owner.RaiseEvent(key, objInfo);
     EventDataFactory.Push(objInfo);
 }
Esempio n. 3
0
 public static void Raise(BaseEntity target, E_EntityInTrigger key, EventSetData objInfo)
 {
     target.RaiseEvent(key, objInfo);
     EventDataFactory.Push(objInfo);
 }