Created
December 26, 2021 03:53
-
-
Save curious-username/7cc3544f0c9958327495c76d856e2b0e to your computer and use it in GitHub Desktop.
dodgeenemy update/start
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 Start() | |
{ | |
_player = GameObject.Find("Player").GetComponent<Player>(); | |
_explosionAudioObject = GameObject.Find("Explosion"); | |
if(_explosionAudioObject != null) | |
{ | |
_explosionSound = _explosionAudioObject.GetComponent<AudioSource>(); | |
} | |
} | |
void Update() | |
{ | |
Movement(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment