AOEEntityView.cs 1008 B

123456789101112131415161718192021222324252627282930
  1. using FL.Battle.Components;
  2. using FL.Battle.Components.AI;
  3. using UnityEngine;
  4. using XGame.Framework.Map;
  5. using XGame.Framework.ObjectCollection;
  6. namespace FL.Map
  7. {
  8. public class AOEEntityView : SimpleEntityView<AOEEntityVM>, IAOEEntityAIContext, IVfxContext
  9. {
  10. public AOEEntityAI AI => GetComponent<AOEEntityAI>();
  11. public VfxComponent Vfx => GetComponent<VfxComponent>();
  12. //Transform IAOEEntityAIContext.ParticleTr => VM.ParticleRoot.transform;
  13. Transform IAOEEntityAIContext.Tr => VM.Tr;
  14. #region IVfxContext
  15. Transform IVfxContext.WorldTr => null;
  16. Transform IVfxContext.CenterTr => VM.Tr;
  17. Transform IVfxContext.CastTr => VM.Tr;
  18. #endregion
  19. }
  20. public class AOEEntityVM : EntityViewModel
  21. {
  22. //public GameObject ParticleRoot { get; private set; }
  23. protected override void OnInit(IObjectCollector collector)
  24. {
  25. //ParticleRoot = collector.GetGameObject("ParticleRoot");
  26. }
  27. }
  28. }