ComAISpell.ObjectEvent.cs 497 B

12345678910111213141516171819
  1. using CommonAI.Zone;
  2. namespace CommonAIClient.Unity.Battle
  3. {
  4. public partial class ComAISpell
  5. {
  6. protected override void RegistAllObjectEvent()
  7. {
  8. base.RegistAllObjectEvent();
  9. RegistObjectEvent<SpellLockTargetEvent>(ObjectEvent_SpellLockTargetEvent);
  10. }
  11. protected virtual void ObjectEvent_SpellLockTargetEvent(SpellLockTargetEvent ev)
  12. {
  13. mTarget = BattleScene.GetBattleObject(ev.target_obj_id);
  14. }
  15. }
  16. }