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

17 lines
434 B
C#
Raw Normal View History

2024-02-27 19:03:50 +01:00
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
2024-02-27 19:03:50 +01:00
public class DoorUnlock : Lockable
{
public Animator doorAnimator;
2024-02-27 19:03:50 +01:00
public override void StartUnlock(){
doorAnimator.SetBool("doorisopen", true);
2024-02-27 19:03:50 +01:00
}
public override void FailedUnlock(){
return;
}
}