Neue Räume und Assets hinzugefügt. Alles verkackt und wieder repariert.

This commit is contained in:
Thorbjoern
2025-07-08 20:08:27 +02:00
parent 28cd11c683
commit 5a72292374
2385 changed files with 863054 additions and 20344 deletions
@@ -221,7 +221,7 @@ namespace GhostSystem
Debug.LogError("Replay started: total duration = " + totalDuration + " s, First: " + firstTimestamp + ", Last: " + lastTimestamp);
}
public void PauseReplay() => isPlaying = false; // Für das Pause UI-Element, um das Replay zu pausieren
public void PauseReplay() => isPlaying = !isPlaying;
public void StopReplay() // Für das Stop UI-Element, um das Replay zu beenden
{
@@ -10,6 +10,8 @@ public class OrbitCameraMouseControl : MonoBehaviour
[Header("Cinemachine Components")]
public CinemachineInputAxisController inputAxisController;
private bool aimingBlocked = false;
private void OnEnable()
{
if (aimAction != null)
@@ -24,12 +26,18 @@ public class OrbitCameraMouseControl : MonoBehaviour
void Update()
{
bool isAiming = aimAction != null && aimAction.action.ReadValue<float>() > 0.5f;
bool isAiming = aimAction != null && aimAction.action.ReadValue<float>() > 0.5f && !aimingBlocked;
if (inputAxisController != null)
if (inputAxisController != null) // aimingBlocked wird durch hover States der Menü-Elemente gesetzt
{
inputAxisController.Controllers[0].Enabled = isAiming;
inputAxisController.Controllers[1].Enabled = isAiming;
inputAxisController.Controllers[2].Enabled = !aimingBlocked;
}
}
public void SetBlocker(bool value)
{
aimingBlocked = value;
}
}