to new git
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
public class TimeManager : MonoBehaviour
|
||||
{
|
||||
@ -17,12 +15,14 @@ public class TimeManager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Only one Instance");
|
||||
Debug.LogError("Only 1 Instance");
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
void Update()
|
||||
{
|
||||
CurrentTime += Time.deltaTime;
|
||||
if (CurrentTime > SettingsReader.Instance.GetSettings.TimeOut)
|
||||
GlobalEventManager.SendTimeout();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user