revival/game/Assets/FallawayFloor.cs

13 lines
266 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FallawayFloor : MonoBehaviour
{
IEnumerator OnCollisionEnter(Collision coll)
{
yield return new WaitForSeconds(2);
Destroy(gameObject);
}
}