|
@@ -810,6 +810,13 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
GameObject matObj = new GameObject(material.name);
|
|
|
matObj.transform.SetParent(spoitValues.Object.transform);
|
|
|
+
|
|
|
+ matObj.transform.localPosition = Vector3.zero;
|
|
|
+ matObj.transform.localEulerAngles = Vector3.zero;
|
|
|
+ matObj.transform.localScale = new Vector3(1, 1, 1);
|
|
|
+ material.objectTransform.SetStartValue(matObj.transform.localPosition, matObj.transform.localEulerAngles, matObj.transform.localScale);
|
|
|
+
|
|
|
+
|
|
|
if (!material.select)
|
|
|
{
|
|
|
matObj.transform.localPosition = Vector3.zero;
|
|
@@ -823,6 +830,8 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
matObj.transform.localEulerAngles = material.objectTransform.nowRot;
|
|
|
matObj.transform.localScale = material.objectTransform.nowScale;
|
|
|
}
|
|
|
+ */
|
|
|
+
|
|
|
|
|
|
ObjectValue spoitValue = new ObjectValue(i, spoit.id, material.name, matObj);
|
|
|
|