poc firehydrant oncollide publishes to Car.events script subscribers wheeeeeeeeeeeee

This commit is contained in:
2026-03-22 11:54:09 -06:00
parent 322226c8c0
commit f46b17558e
5 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using UnityEngine;
public class firehydrant : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnCollisionEnter(Collision _)
{
events.PubCollision();
}
}