DragPointOther.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using UnityEngine;
  2. namespace COM3D2.MeidoPhotoStudio.Plugin
  3. {
  4. internal class DragPointBody : DragPointGeneral
  5. {
  6. public bool IsCube = false;
  7. protected override void ApplyDragType()
  8. {
  9. DragType current = CurrentDragType;
  10. bool transforming = !(current == DragType.None || current == DragType.Delete);
  11. ApplyProperties(transforming, IsCube && transforming, false);
  12. }
  13. }
  14. internal class DragPointBG : DragPointGeneral
  15. {
  16. protected override void ApplyDragType()
  17. {
  18. ApplyProperties(Transforming, Transforming, Rotating);
  19. }
  20. }
  21. internal class DragPointDogu : DragPointGeneral
  22. {
  23. public AttachPointInfo attachPointInfo = AttachPointInfo.Empty;
  24. public string Name => MyGameObject.name;
  25. protected override void ApplyDragType()
  26. {
  27. DragType current = CurrentDragType;
  28. bool active = Transforming || Special;
  29. ApplyProperties(active, active, Rotating);
  30. }
  31. protected override void OnDestroy()
  32. {
  33. GameObject.Destroy(MyGameObject);
  34. base.OnDestroy();
  35. }
  36. }
  37. }