DeskCustomizeWindowManager.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 str = Path.Combine(GameMain.Instance.SerializeStorageManager.StoreDirectoryPath, "SaveData");
  34. return str + "/CustomizeUISetting.save";
  35. }
  36. }
  37. protected override string save_header_uidata
  38. {
  39. get
  40. {
  41. return "CM3D2_CustomizeUISetting";
  42. }
  43. }
  44. }