Heroes_of_Hiis/Assets/Project Files/Scripts/Shumpei/DoorController.cs

21 lines
405 B
C#
Raw Normal View History

2022-03-28 13:48:27 +00:00
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);
}
}