objective interface

This commit is contained in:
zmoixdev
2026-03-08 18:50:02 -06:00
parent 2e3541579f
commit de3bec4ef3
148 changed files with 65967 additions and 146 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
[System.Serializable]
public class FocalPoint : MonoBehaviour
{
[SerializeField] bool isInGoal = false;
void OnTriggerEnter(Collider other) {
if (other.gameObject.tag == "Goal") {
isInGoal = true;
}
}
void OnTriggerExit(Collider other) {
if (other.gameObject.tag == "Goal") {
isInGoal = false;
}
}
public bool GetIsInGoal() {
return isInGoal;
}
}