1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Door.cs

27 lines
415 B
C#
Raw Normal View History

2018-04-21 15:39:48 +02:00
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;
}
}