public static ClockManager getInstance() { if (instance == null) { instance = UIManager.getInstance().gameObject.AddComponent <ClockManager>(); //instance = GameObject.FindObjectOfType<ClockManager>(); } return(instance); }
public void Destroys() { ClockManager.getInstance().RemoveClock(this); }
void Awake() { instance = this; }