Created
August 8, 2016 15:47
-
-
Save tdvance/a97ae47ae644a9ce06cb1cef65654aa2 to your computer and use it in GitHub Desktop.
debug code in a c sharp file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnCollisionEnter2D(Collision2D collision) | |
{ | |
Debug.Log("breakableCount: " + breakableCount); | |
GameObject[] breakable = GameObject.FindGameObjectsWithTag("Breakable"); | |
Debug.Log("actual breakableCount: " + breakable.Length); | |
if (isBreakable) { | |
AudioSource.PlayClipAtPoint(brickBroke, transform.position); | |
HandleHits(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment