Test Animací - fail

This commit is contained in:
2025-06-25 13:19:20 +02:00
parent 6d19043ed9
commit e4d3a0f242
18 changed files with 2673 additions and 19 deletions

View 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);
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 0e34ab1157d346043ae8c82fb96ea423

View File

@@ -0,0 +1,13 @@
using UnityEngine;
public class DoorController : MonoBehaviour
{
[SerializeField] private Animator doorLAnimator;
[SerializeField] private Animator doorRAnimator;
public void OpenDoor()
{
doorLAnimator.SetTrigger("Open");
doorRAnimator.SetTrigger("Open");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 32247197df65c234298196b8068b3344