DeskCustomizeWindowManager.cs 1000 B

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