Created
December 26, 2021 04:15
-
-
Save curious-username/20c0816c0a88ce3880589af13f279347 to your computer and use it in GitHub Desktop.
explosion method
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
private void Explosion() | |
{ | |
_explosionSound.Play(); | |
Instantiate(_explosionObject, transform.position, Quaternion.identity); | |
Destroy(gameObject); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment