2025-04-16 19:57:54 -04:00
|
|
|
using UnityEngine; using Game; using Music; using Player;
|
|
|
|
|
namespace Game
|
|
|
|
|
{
|
2025-03-31 18:28:05 -04:00
|
|
|
|
|
|
|
|
[ExecuteAlways]
|
|
|
|
|
public class GameManagerHelper : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public bool addHatPosition;
|
|
|
|
|
public bool addSpawnPosition;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
|
{
|
|
|
|
|
if (addHatPosition)
|
|
|
|
|
{
|
|
|
|
|
addHatPosition = false;
|
|
|
|
|
GetComponent<GameManager>().hatSpawnPositions.Add(GameObject.Find("HELPER").transform.position);
|
|
|
|
|
}
|
|
|
|
|
if (addSpawnPosition)
|
|
|
|
|
{
|
|
|
|
|
addSpawnPosition = false;
|
|
|
|
|
GetComponent<GameManager>().spawnPosition = GameObject.Find("HELPER").transform.position;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-16 19:57:54 -04:00
|
|
|
}
|