Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (CoreLife <= 0)
     {
         SoundManager.PlayS(gameObject, "SE_Core_Destory");
         tc.StopCoreSE();
         Destroy(gameObject);
         LogToCSV.Log_GameOver();
         SceneManager.LoadScene("GameOver");
     }
 }