SpecialDotInfo.cs 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. return targetTran.eulerAngles;
  31. }
  32. public Vector3 GetWorlPos(Vector3 pos)
  33. {
  34. return targetTran.position;
  35. }
  36. }