]> git.lizzy.rs Git - SuperMouseAdventure.git/blob - 2DGame/Assets/Scripts/Saving/PlayerData.cs
9c742bba3f0bc0e94bb9bd66bc38dd71e05c54f4
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Saving / PlayerData.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4
5 public class PlayerData
6 {
7     public float [] position;
8     public int collectedCheese;
9
10     public PlayerData (CheckpointManager cm, Cheese cheese)
11     {
12         collectedCheese = cheese.cheesecount;
13         position = new float[3];
14         position[0] = cm.lastCheckpointPos.x;
15         position[1] = cm.lastCheckpointPos.y;
16         position[2] = cm.lastCheckpointPos.z;
17     }
18 }