public void OnTriggerEnter(Collider other) { var player = other.GetComponent <PlayerController>(); player.Stop(); timer.Stop(); StartCoroutine(RestartInAWhile(10)); }
private void CloseForm() { TimeUpdate.Stop(); //关闭线程 if (null != LoadThread && LoadThread.IsAlive) { LoadThread.Abort(); LoadThread = null; } this.Close(); }