Exemple #1
0
 private void DestroyBlock()
 {
     TriggerSparklesVFX();
     AudioSource.PlayClipAtPoint(breakingSounds, Camera.main.transform.position);
     //Object.Destroy has two params time and object
     Destroy(gameObject);
     level.BlockDestroyed();
     GameStatus.Add2Score();
     //Debug.Log(collision.gameObject.name);
 }