DragPointOther.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. public string assetName = string.Empty;
  26. protected override void ApplyDragType()
  27. {
  28. DragType current = CurrentDragType;
  29. bool active = Transforming || Special;
  30. ApplyProperties(active, active, Rotating);
  31. }
  32. protected override void OnDestroy()
  33. {
  34. GameObject.Destroy(MyGameObject);
  35. base.OnDestroy();
  36. }
  37. }
  38. }