Chapter 4 done

This commit is contained in:
BeatriceAl
2026-04-05 11:18:32 +02:00
parent d7e461212a
commit 31e285fa45
15 changed files with 845 additions and 10 deletions
@@ -0,0 +1,14 @@
using UnityEngine;
public class GoalScript : MonoBehaviour
{
void OnTriggerEnter(Collider other)
{
GetComponent<Renderer>().material.color = Color.red;
}
void OnTriggerExit(Collider other)
{
GetComponent<Renderer>().material.color = Color.blue;
}
}