Commit ab70a329 authored by Michael But's avatar Michael But

SavePointList

parent 5b95de9a
......@@ -15,7 +15,7 @@ public class SavePointData
position = new float[2];
position[0] = save.transform.position.x;
position[1] = save.transform.position.y;
//savePointIsActiv = SavePointList.spl.GetIsActivList();
savePointIsActiv = SavePointList.spl.GetIsActivList();
}
public SavePointData(Vector2 save)
......@@ -23,6 +23,7 @@ public class SavePointData
position = new float[2];
position[0] = save.x;
position[1] = save.y;
savePointIsActiv = null;
}
}
......@@ -11,7 +11,7 @@ namespace SavePointListScript
public bool[] GetIsActivList()
{
bool[] savePointIsActiv = new bool[savePointList.Length -1];
bool[] savePointIsActiv = new bool[savePointList.Length];
int i = 0;
foreach(GameObject var in savePointList)
{
......
......@@ -8,8 +8,6 @@ using PlayerSpawnPointScript;
public class SaveSystem
{
public static void SavePointUpdate(SavePoint save)
{
BinaryFormatter formatter = new BinaryFormatter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment