SpecialDotInfo.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Utility;
  2. using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventinterface;
  3. #if !COMBAT_SERVER
  4. using UnityEngine;
  5. #endif
  6. public class SpecialDotInfo
  7. {
  8. public string dotName;
  9. public ITimeLineSpecialDotPos heroEntity;
  10. public Transform targetTran;
  11. public void Dis()
  12. {
  13. heroEntity = null;
  14. }
  15. public void Init(ITimeLineSpecialDotPos heroEntity)
  16. {
  17. this.heroEntity = heroEntity;
  18. }
  19. public Vector3 GetWorlPos()
  20. {
  21. return GetWorlPos(new Vector3());
  22. }
  23. public Vector3 GeRotPos()
  24. {
  25. // GetTransformInfo().
  26. return GetWorlPos(new Vector3());
  27. }
  28. public Vector3 GetEulerAngles()
  29. {
  30. {
  31. Vector3 dir = heroEntity.faceDir;
  32. if (dir.x > 0)
  33. {
  34. return new Vector3(0, 0);
  35. }
  36. else
  37. {
  38. return new Vector3(0, -180);
  39. }
  40. }
  41. }
  42. public Vector3 GetWorlPos(Vector3 pos)
  43. {
  44. return targetTran.position;
  45. }
  46. }