CustomParts.cs 664 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using UnityEngine;
  3. namespace SceneEditWindow
  4. {
  5. public class CustomParts : BaseCustomParts
  6. {
  7. public CustomParts(Maid maid, TBody.SlotID slotId, string apName) : base(maid, slotId, apName)
  8. {
  9. }
  10. public void Destroy()
  11. {
  12. if (this.indirectObject != null)
  13. {
  14. UnityEngine.Object.DestroyImmediate(this.indirectObject);
  15. }
  16. this.indirectObject = null;
  17. if (this.tranformAxis != null)
  18. {
  19. UnityEngine.Object.DestroyImmediate(this.tranformAxis.gameObject);
  20. }
  21. }
  22. public SceneEdit.SMenuItem menuItem;
  23. public GameObject indirectObject;
  24. public WorldTransformAxis tranformAxis;
  25. public GizmoRender gizmoRender;
  26. }
  27. }