Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Wintersemester 2018-2019
Unity
Suck It
Commits
ab70a329
Commit
ab70a329
authored
Mar 29, 2019
by
Michael But
Browse files
SavePointList
parent
5b95de9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Assets/_Game/Scripts/SaveAndLoad/SavePointData.cs
View file @
ab70a329
...
...
@@ -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
;
}
}
Assets/_Game/Scripts/SaveAndLoad/SavePointList.cs
View file @
ab70a329
...
...
@@ -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
)
{
...
...
Assets/_Game/Scripts/SaveAndLoad/SaveSystem.cs
View file @
ab70a329
...
...
@@ -8,8 +8,6 @@ using PlayerSpawnPointScript;
public
class
SaveSystem
{
public
static
void
SavePointUpdate
(
SavePoint
save
)
{
BinaryFormatter
formatter
=
new
BinaryFormatter
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment