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,9 @@
using UnityEngine;
public class WelcomeTrigger : BaseTrigger
{
protected override void OnPlayerEnter()
{
log.WriteOutLog("Welcome to my spaceship engineer, we are currently undergoing some maintance so please allow my robots some leeway", 0.05f);
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 298f124a3fdf91f41b692cf145cb29cd

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()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 5060b3e8fb6da8f41a3da4eaa47ba624