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(); }
private void DestroyBlock() { gameStatus.AddToScore(); AudioSource.PlayClipAtPoint(breakSound, Camera.main.transform.position); Destroy(gameObject); lev.BlockDestroyed(); }
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); }