]> git.lizzy.rs Git - SuperMouseAdventure.git/blobdiff - 2DGame/Assets/Scripts/Mouse/Checkpoint.cs
checkpoint-system v0.3
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Mouse / Checkpoint.cs
index c41d5b952c713721de12218a708e0a9ffaef1968..e1f8014b9b6f8bd532315b72e1217f3900d42281 100644 (file)
@@ -5,7 +5,7 @@ using UnityEngine;
 public class Checkpoint : MonoBehaviour
 {
     private CheckpointManager cm;
-    private Cheese cheese;
+    private CheeseCollection cheese;
     private CheeseCoin cheeseCoin;
 
     public Sprite green;
@@ -13,7 +13,7 @@ public class Checkpoint : MonoBehaviour
     void Start()
     {
         cm = GameObject.FindGameObjectWithTag("CheckpointManager").GetComponent<CheckpointManager>();
-        cheese = GameObject.FindGameObjectWithTag("Player").GetComponent<Cheese>();
+        cheese = GameObject.FindGameObjectWithTag("Player").GetComponent<CheeseCollection>();
         cheeseCoin = GameObject.FindGameObjectWithTag("Player").GetComponent<CheeseCoin>();
     }