Meeting
This commit is contained in:
23
Assets/Scripts/Game/GameManagerHelper.cs
Normal file
23
Assets/Scripts/Game/GameManagerHelper.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
[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;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Game/GameManagerHelper.cs.meta
Normal file
2
Assets/Scripts/Game/GameManagerHelper.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c35a13ba94b04f19a6ee30e6fe34327
|
||||
Reference in New Issue
Block a user