Test Animací - fail
This commit is contained in:
16
3D blobici/Assets/Prefabs/Scripts/CreateEntrances.cs
Normal file
16
3D blobici/Assets/Prefabs/Scripts/CreateEntrances.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user