Exemple #1
0
    public void OnTriggerEnter(Collider other)
    {
        var player = other.GetComponent <PlayerController>();

        player.Stop();
        timer.Stop();

        StartCoroutine(RestartInAWhile(10));
    }
Exemple #2
0
 private void CloseForm()
 {
     TimeUpdate.Stop();
     //关闭线程
     if (null != LoadThread && LoadThread.IsAlive)
     {
         LoadThread.Abort();
         LoadThread = null;
     }
     this.Close();
 }