|
@@ -1304,6 +1304,8 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
}
|
|
|
public Dictionary<int, Vector3> spoitposDic = new Dictionary<int, Vector3>();
|
|
|
public Dictionary<int, GameObject> spoitposObjDic = new Dictionary<int, GameObject>();
|
|
|
+
|
|
|
+ public float wutiH=1.5f;
|
|
|
private GameObject CreateSpoit(SpoitValue spoit, Vector3 spoitPos)
|
|
|
{
|
|
|
|
|
@@ -1315,9 +1317,9 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
if (spoit.spoitTf.startPos == Vector3.zero && spoit.spoitTf.nowPos == Vector3.zero)
|
|
|
{*/
|
|
|
- spoitposDic.Add(spoit.id, new Vector3(spoitPos.x, 0.5f, spoitPos.z));
|
|
|
- spoitObj.transform.localPosition = new Vector3(spoitPos.x, 0.5f, spoitPos.z)+ spoit.spoitTf.nowPos;
|
|
|
- Debug.Log("最新保存====》獲取的POS" + new Vector3(spoitPos.x, 0.5f, spoitPos.z));
|
|
|
+ spoitposDic.Add(spoit.id, new Vector3(spoitPos.x, wutiH, spoitPos.z));
|
|
|
+ spoitObj.transform.localPosition = new Vector3(spoitPos.x, wutiH, spoitPos.z)+ spoit.spoitTf.nowPos;
|
|
|
+ Debug.Log("最新保存====》獲取的POS" + new Vector3(spoitPos.x, wutiH, spoitPos.z));
|
|
|
Debug.Log("最新保存====》獲取的偏移POS" + spoit.spoitTf.nowPos);
|
|
|
Debug.Log("最新保存====》獲取的物體Pos" + spoitObj.transform.localPosition);
|
|
|
spoitObj.transform.localRotation = Quaternion.identity;
|