20 lines
411 B
C#
20 lines
411 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
//* General Comments or Finished Tasks
|
||
|
//TODO Tasks left to be done for game
|
||
|
//! Bugs or Issues
|
||
|
//? Questions or Suggestions
|
||
|
|
||
|
|
||
|
public class TouchFloor : MonoBehaviour
|
||
|
{
|
||
|
void OnCollisionEnter(Collision collision)
|
||
|
{
|
||
|
if (collision.gameObject.tag == "Floor")
|
||
|
{
|
||
|
Destroy(gameObject);
|
||
|
}
|
||
|
}
|
||
|
}
|