소스 검색

修改脚本

蓝色星空 1 년 전
부모
커밋
052c581fe7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);