]> git.lizzy.rs Git - SuperMouseAdventure.git/blobdiff - 2DGame/Assets/Scripts/Mouse/CheckpointManager.cs
checkpoint-system v0.3
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Mouse / CheckpointManager.cs
index b705df922dfeda5e855947c657dba8b7ad2fd084..b6d268829dba54c05e6e146b7594348ec655faeb 100644 (file)
@@ -11,7 +11,7 @@ public class CheckpointManager : MonoBehaviour
     [SerializeField]
     Transform firstCheckpoint;
 
-    Cheese cheese;
+    CheeseCollection cheese;
 
     CheeseCoin cheeseCoin;
 
@@ -21,7 +21,6 @@ public class CheckpointManager : MonoBehaviour
 
     public bool isCheeseCoinCollected;
 
-
     void Awake()
     {
         if (instance == null)
@@ -50,7 +49,6 @@ public class CheckpointManager : MonoBehaviour
     {
         PlayerData data = SaveSystem.LoadPlayer();
 
-        cheese.SetCheeseCount(data.collectedCheese);
         cheeseCoin.cheeseCoinCollected = data.isCheeseCoinCollected;
 
         Vector3 position;