Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created December 26, 2021 03:53
Show Gist options
  • Save curious-username/7cc3544f0c9958327495c76d856e2b0e to your computer and use it in GitHub Desktop.
Save curious-username/7cc3544f0c9958327495c76d856e2b0e to your computer and use it in GitHub Desktop.
dodgeenemy update/start
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