projectEli/Assets/Standard Assets/Asset Store Downloads/FirstPersion AIO Pack/DemoScene/MiscScripts/Doors.cs
2022-10-07 22:26:09 -04:00

14 lines
257 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Doors : MonoBehaviour {
void OnTriggerEnter(Collider coll){
if(coll.tag=="Player"){
GetComponent<Animator>().Play("Door_open");
this.enabled=false;
}
}
}