SpecialDotInfo.cs 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 bool followSkeleton;
  12. public void Dis()
  13. {
  14. heroEntity = null;
  15. }
  16. public void Init(ITimeLineSpecialDotPos heroEntity)
  17. {
  18. this.heroEntity = heroEntity;
  19. }
  20. public Vector3 GetWorlPos()
  21. {
  22. return GetWorlPos(new Vector3());
  23. }
  24. public Vector3 GeRotPos()
  25. {
  26. // GetTransformInfo().
  27. return GetWorlPos(new Vector3());
  28. }
  29. public Vector3 GetEulerAngles()
  30. {
  31. return targetTran.eulerAngles;
  32. }
  33. public Vector3 GetWorlPos(Vector3 pos)
  34. {
  35. return targetTran.position;
  36. }
  37. }