public override void OnEnter(BlackBoard blackboard) { LogEnter(); EntityExportToTargetData data = EventDataFactory.Pop <EntityExportToTargetData>(); _export_to_target_damage(data, blackboard as EntityBlackBoard); EventDataFactory.Push(data); Finish(); }
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); }
public static void Raise(BaseEntity target, E_EntityInTrigger key, EventSetData objInfo) { target.RaiseEvent(key, objInfo); EventDataFactory.Push(objInfo); }