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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user