public class Checkpoint : MonoBehaviour
{
private CheckpointManager cm;
- private Cheese cheese;
+ private CheeseCollection cheese;
private CheeseCoin cheeseCoin;
public Sprite green;
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>();
}