other shit
This commit is contained in:
parent
8da3b6cf35
commit
cf815d6594
|
@ -3504,6 +3504,10 @@ PrefabInstance:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 0}
|
m_TransformParent: {fileID: 0}
|
||||||
m_Modifications:
|
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}
|
- target: {fileID: 3401975006071930001, guid: c53e6971c95afb1429cd82616a7b6737, type: 3}
|
||||||
propertyPath: m_Targets.Array.data[0].target
|
propertyPath: m_Targets.Array.data[0].target
|
||||||
value:
|
value:
|
||||||
|
|
|
@ -10,15 +10,19 @@ public class GameManager : MonoBehaviour
|
||||||
|
|
||||||
public Action OnPlayerDied;
|
public Action OnPlayerDied;
|
||||||
|
|
||||||
|
private string penisSuriveTime = "";
|
||||||
|
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
if (Instance != null)
|
if (Instance == null)
|
||||||
{
|
{
|
||||||
Instance = this;
|
Instance = this;
|
||||||
DontDestroyOnLoad(gameObject);
|
DontDestroyOnLoad(gameObject);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
Destroy(gameObject);
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
|
@ -30,6 +34,10 @@ public class GameManager : MonoBehaviour
|
||||||
Debug.Break();
|
Debug.Break();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTime(string t) {
|
||||||
|
penisSuriveTime = t;
|
||||||
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,5 +22,6 @@ public class SurvivalTimer : MonoBehaviour
|
||||||
int minutes = Mathf.FloorToInt(elapsedTime / 60);
|
int minutes = Mathf.FloorToInt(elapsedTime / 60);
|
||||||
int seconds = Mathf.FloorToInt(elapsedTime % 60);
|
int seconds = Mathf.FloorToInt(elapsedTime % 60);
|
||||||
timerText.text = string.Format("{00:00}:{01:00}", minutes, seconds);
|
timerText.text = string.Format("{00:00}:{01:00}", minutes, seconds);
|
||||||
|
GameManager.Instance.setTime(timerText.text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue