poc firehydrant oncollide publishes to Car.events script subscribers wheeeeeeeeeeeee
This commit is contained in:
19
Assets/Actors/Automatic/Firehydrant/firehydrant.cs
Normal file
19
Assets/Actors/Automatic/Firehydrant/firehydrant.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
2
Assets/Actors/Automatic/Firehydrant/firehydrant.cs.meta
Normal file
2
Assets/Actors/Automatic/Firehydrant/firehydrant.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f63a4aa77aafd2b12a2554da4978087c
|
||||
Reference in New Issue
Block a user