DeskCustomizeWindowManager.cs 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using UnityEngine;
  5. public class DeskCustomizeWindowManager : BasePhotoWindowManager
  6. {
  7. public override void Awake()
  8. {
  9. base.Awake();
  10. }
  11. public override void Start()
  12. {
  13. base.Start();
  14. }
  15. public void Save()
  16. {
  17. List<DeskManager.InstansData> item_inst_data = DeskManager.item_inst_data;
  18. for (int i = 0; i < item_inst_data.Count; i++)
  19. {
  20. if (!(item_inst_data[i].item_object == null))
  21. {
  22. Transform transform = item_inst_data[i].item_object.transform;
  23. item_inst_data[i].position = transform.position;
  24. item_inst_data[i].rotation = transform.rotation.eulerAngles;
  25. item_inst_data[i].scale = transform.localScale;
  26. }
  27. }
  28. }
  29. protected override string save_fullpath_uidata
  30. {
  31. get
  32. {
  33. string fullPath = Path.GetFullPath(".\\");
  34. string str = fullPath + "SaveData";
  35. return str + "/CustomizeUISetting.save";
  36. }
  37. }
  38. protected override string save_header_uidata
  39. {
  40. get
  41. {
  42. return "CM3D2_CustomizeUISetting";
  43. }
  44. }
  45. }