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