コード例 #1
0
 private void Kill()
 {
     Smoke.GetComponent <ParticleSystem>().Play();
     LevelManager.BreakableBrickCount--;
     LevelManager.CheckWinCondition();
     //last thing that get's called, because nothing else is available after
     Destroy(gameObject);
 }