other shit

This commit is contained in:
SpoodyTheOne 2024-02-04 10:04:07 +01:00
parent 8da3b6cf35
commit cf815d6594
3 changed files with 16 additions and 3 deletions

View File

@ -3504,6 +3504,10 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1609280383408315754, guid: c53e6971c95afb1429cd82616a7b6737, type: 3}
propertyPath: orthographic size
value: 12.5
objectReference: {fileID: 0}
- target: {fileID: 3401975006071930001, guid: c53e6971c95afb1429cd82616a7b6737, type: 3}
propertyPath: m_Targets.Array.data[0].target
value:

View File

@ -10,16 +10,20 @@ public class GameManager : MonoBehaviour
public Action OnPlayerDied;
private string penisSuriveTime = "";
void Awake()
{
if (Instance != null)
if (Instance == null)
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
else
{
Destroy(gameObject);
}
}
void Start()
{
@ -30,6 +34,10 @@ public class GameManager : MonoBehaviour
Debug.Break();
}
public void setTime(string t) {
penisSuriveTime = t;
}
// Update is called once per frame
void Update()
{

View File

@ -22,5 +22,6 @@ public class SurvivalTimer : MonoBehaviour
int minutes = Mathf.FloorToInt(elapsedTime / 60);
int seconds = Mathf.FloorToInt(elapsedTime % 60);
timerText.text = string.Format("{00:00}:{01:00}", minutes, seconds);
GameManager.Instance.setTime(timerText.text);
}
}