17 lines
534 B
C#
17 lines
534 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class CreateEntrances : MonoBehaviour
|
||
|
|
{
|
||
|
|
[SerializeField] private GameObject wallNorth;
|
||
|
|
[SerializeField] private GameObject wallSouth;
|
||
|
|
[SerializeField] private GameObject wallEast;
|
||
|
|
[SerializeField] private GameObject wallWest;
|
||
|
|
public void SetEntrances(bool northOpen, bool southOpen, bool eastOpen, bool westOpen)
|
||
|
|
{
|
||
|
|
wallNorth.SetActive(!northOpen);
|
||
|
|
wallSouth.SetActive(!southOpen);
|
||
|
|
wallEast.SetActive(!eastOpen);
|
||
|
|
wallWest.SetActive(!westOpen);
|
||
|
|
}
|
||
|
|
}
|