1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Door.cs
2018-04-21 15:39:48 +02:00

26 lines
415 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Door : MonoBehaviour {
private bool locked = false;
// Use this for initialization
void Start () {
locked = false;
}
public void Lock()
{
locked = true;
}
public void Unlock()
{
locked = false;
}
public bool IsLocked()
{
return locked;
}
}