]> git.lizzy.rs Git - SuperMouseAdventure.git/blob - 2DGame/Assets/Scripts/Saving/PlayerData.cs
3cc7aa2bd9a77dfc8650e92635f270fc0e98c7ec
[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     public bool isCheeseCoinCollected;
10
11     public PlayerData (CheckpointManager cm, Cheese cheese, CheeseCoin cheeseCoin)
12     {
13         collectedCheese = cheese.cheesecount;
14         isCheeseCoinCollected = cheeseCoin.cheeseCoinCollected;
15         position = new float[3];
16         position[0] = cm.lastCheckpointPos.x;
17         position[1] = cm.lastCheckpointPos.y;
18         position[2] = cm.lastCheckpointPos.z;
19     }
20 }