13 lines
266 B
C#
13 lines
266 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class FallawayFloor : MonoBehaviour
|
||
|
{
|
||
|
IEnumerator OnCollisionEnter(Collision coll)
|
||
|
{
|
||
|
yield return new WaitForSeconds(2);
|
||
|
Destroy(gameObject);
|
||
|
}
|
||
|
}
|