Looking-Glass/Assets/props/doors/door1/DoorUnlock.cs

17 lines
434 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// not attached directly to a door, instead takes a refrence to a door animator and opens it when start unlock is called
public class DoorUnlock : Lockable
{
public Animator doorAnimator;
public override void StartUnlock(){
doorAnimator.SetBool("doorisopen", true);
}
public override void FailedUnlock(){
return;
}
}