21 lines
405 B
C#
21 lines
405 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DoorController : MonoBehaviour
|
|
{
|
|
[SerializeField] private Animator myDoor = null;
|
|
|
|
// Start is called before the first frame update
|
|
|
|
public void DoorOpen()
|
|
{
|
|
myDoor.Play("DoorOpen", 0, 0.0f);
|
|
}
|
|
|
|
public void DoorClose()
|
|
{
|
|
myDoor.Play("DoorClose", 0, 0.0f);
|
|
}
|
|
}
|