Working on entrance and building out first level

This commit is contained in:
2026-01-16 16:53:33 +00:00
parent 9cfaec3ea1
commit 4a37a76e9e
33 changed files with 4450 additions and 238 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
public class BaseTrigger : MonoBehaviour
{
protected Log log;
protected virtual void Awake()
{
log = FindFirstObjectByType<Log>();
}
protected virtual void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
OnPlayerEnter();
}
}
// Override this in subclasses
protected virtual void OnPlayerEnter()
{
}
}