public static TimeManager Get() { if(instance == null){ GameObject go = new GameObject("TimeManager"); instance = go.AddComponent<TimeManager>(); } return instance; }