Health and Energy Logic ausgeführt, GameOver und LevelTime Scripte angelegt, Timer (aber keinen krassen coolen) eingebaut

This commit is contained in:
2026-02-10 11:28:41 +01:00
parent 42b50afc95
commit 57f6aa02c8
10 changed files with 235 additions and 934 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Threading;
using TMPro;
using UnityEditor.Rendering;
using UnityEngine;
public class LevelScripts : MonoBehaviour
{
[SerializeField] float clock;
[SerializeField] TMP_Text gameTime;
[SerializeField] bool onShift;
void Start()
{
onShift = true;
clock = 0;
}
private void Update()
{
if (onShift)
{
gameTime.text = Convert.ToInt32(clock += Time.deltaTime).ToString();
}
else
{
EndShift();
}
}
public void EndShift()
{
onShift = false;
}
}