toolsmax0_COMP3911_Game/Assets/Scripts/Raw/Dooranimated.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class Dooranimated : MonoBehaviour
{
    private Animator animator;

    private void Awake()
    {
        animator = GetComponent<Animator>();
    }

    public void OpenDoor()
    {
        animator.SetBool("Open", true);
    }

    public void CloseDoor()
    {
        animator.SetBool("Open", false);
    }
}
