1 using System.Collections;
2 using System.Collections.Generic;
5 public class PlayerData
7 public float [] position;
8 public int collectedCheese;
9 public bool isCheeseCoinCollected;
11 public PlayerData (CheckpointManager cm, CheeseCollection cheese, CheeseCoin cheeseCoin)
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;