Browse Source

修改脚本

蓝色星空 1 year ago
parent
commit
052c581fe7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Assets/Scripts/Blue/Controller/SavePanel.cs

+ 1 - 0
Assets/Scripts/Blue/Controller/SavePanel.cs

@@ -20,6 +20,7 @@ public class SavePanel : AbstractController
 
     private void Save()
     {
+        meshTest.transform.parent = parent;
         PlayerPrefs.SetFloat("meshTest_PosX", meshTest.localPosition.x);
         PlayerPrefs.SetFloat("meshTest_PosZ", meshTest.localPosition.z);
         PlayerPrefs.SetFloat("meshTest_RotY", meshTest.localEulerAngles.y);