This commit is contained in:
RochesterX
2025-04-17 18:32:27 -04:00
parent 6b7dbea593
commit 87eb6237e5
444 changed files with 28616 additions and 3331 deletions

View File

@@ -157,7 +157,7 @@ public class GameManager : MonoBehaviour
}
else
{
return;
//return;
}
}

View File

@@ -8,10 +8,14 @@ public class HatRespawn : MonoBehaviour
public const float respawnTime = 10f;
private bool isDropped;
public Vector2 initialSubhatPosition;
public static bool canBePickedUp = true; // Flag to check if the hat can be picked up
void Start()
{
initialSubhatPosition = transform.GetChild(0).transform.localPosition;
lastInteractionTime = Time.time;
isDropped = false;
transform.position = GameManager.Instance.hatSpawnPositions[Random.Range(0, GameManager.Instance.hatSpawnPositions.Count - 1)];