EscapeTheRoom/Assets/Scripts/HoleScript.cs
2015-11-07 18:49:21 -05:00

26 lines
467 B
C#

using UnityEngine;
using System.Collections;
public class HoleScript : MonoBehaviour {
public GameObject floor;
// Use this for initialization
private GameObject player;
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter(Collider other) {
if(other.tag == "Player")
{
print("floor ded");
floor.GetComponent<Collider>().enabled = false;
}
}
}