2024-02-27 19:03:50 +01:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2024-02-27 20:19:12 +01:00
|
|
|
// 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
|
|
|
|
{
|
2024-02-27 20:19:12 +01:00
|
|
|
public Animator doorAnimator;
|
2024-02-27 19:03:50 +01:00
|
|
|
public override void StartUnlock(){
|
2024-02-27 20:19:12 +01:00
|
|
|
doorAnimator.SetBool("doorisopen", true);
|
2024-02-27 19:03:50 +01:00
|
|
|
}
|
|
|
|
public override void FailedUnlock(){
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|