Exemple #1
0
 private void DestroyBlock()
 {
     PlayBlockDestroySFX();
     level.BlockDestroyed();
     GameStatus.AddToScore();
     TriggerSparklesVFX();
 }
 private void DestroyBlock()
 {
     TriggerSparklesVFX();
     PlayBlockDestroy();
     Destroy(gameObject);
     level.BlockDestroyed();
 }
 private void DestroyBlock()
 {
     PlayBlockDestorySFX();
     Destroy(gameObject);
     level.BlockDestroyed();
     TriggerSparkleVFX();
 }
Exemple #4
0
 private void DestroyBlock()
 {
     gameStatus.AddToScore();
     AudioSource.PlayClipAtPoint(breakSound, Camera.main.transform.position);
     Destroy(gameObject);
     lev.BlockDestroyed();
 }
Exemple #5
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);
 }