made environment for BensonV4

This commit is contained in:
2024-04-19 11:30:12 +02:00
parent 92a98b98d7
commit 769315be1e
21 changed files with 1553 additions and 435 deletions

View File

@@ -5,4 +5,20 @@ using UnityEngine;
public class Checkpoint : MonoBehaviour
{
public bool isCollected = false;
MeshRenderer meshRenderer;
private void Start() {
meshRenderer = GetComponent<MeshRenderer>();
}
private void Update() {
if (isCollected)
{
meshRenderer.enabled = false;
}
else
{
meshRenderer.enabled = true;
}
}
}