zwieter Pingu und Bär holt sich Reset Objekte

This commit is contained in:
2026-01-25 13:14:50 +01:00
parent be2a52ab3d
commit ad914363fc
6 changed files with 580 additions and 366 deletions
+9 -4
View File
@@ -12,13 +12,16 @@ public class BearIsAwake : MonoBehaviour
private bool wakingUp = false;
public BearAwareness bearAwareness;
public PositionReset penguinReset;
public PositionReset iceBlockReset;
public PositionReset[] thingstoReset;
private void Start()
{
BearAwareness.HasWokenUp += IsAwake;
thingstoReset = FindObjectsOfType<PositionReset>();
}
private void Update()
{
if (wakingUp)
@@ -49,8 +52,10 @@ public class BearIsAwake : MonoBehaviour
if (hit.collider.name == "StandUpCollider")
{
Debug.Log("Your Dead!");
penguinReset.Reset();
iceBlockReset.Reset();
foreach (PositionReset things in thingstoReset)
{
things.Reset();
}
}
else
{