Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (GUI.changed)
- {
- if (Application.isPlaying)
- {
- if (!z.wm.saves.Exists(p => p.type == CompType.Turbu && p.zone == z))
- {
- Debug.Log("added");
- z.wm.saves.Add(new Save()
- {
- type = CompType.Turbu,
- zone = z,
- datas = tc.datas
- });
- }
- else
- {
- Debug.Log("update");
- z.wm.saves.Where(p => p.type == CompType.Turbu && p.zone == z).Single().datas = tc.datas;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement