예제 #1
0
    public static void DeathStart()
    {
        //Time.timeScale = 0;
        UserinterfaceController yo = new UserinterfaceController();

        yo.DeathSecond();
    }
예제 #2
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Enemy")
     {
         UserinterfaceController.DeathStart();
     }
     else if (collision.gameObject.tag == "Coins")
     {
         scoringController.UpdateScoreOnCoin(_coinScore);
         Destroy(collision.gameObject);
     }
 }