basic conveyer function and direction switching stub
This commit is contained in:
17
Assets/Deadend.cs
Normal file
17
Assets/Deadend.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Deadend : MonoBehaviour
|
||||
{
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
Debug.Log(string.Format("we collided with the thingie {0}", other.name));
|
||||
|
||||
if (other.GetComponent<DestructibleObject>() != null)
|
||||
{
|
||||
DestructibleObject destructibleObject = other.GetComponent<DestructibleObject>();
|
||||
destructibleObject.Respawn();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user