Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created October 3, 2021 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curious-username/ddd5d9b102af4253035dc38e21de289e to your computer and use it in GitHub Desktop.
Save curious-username/ddd5d9b102af4253035dc38e21de289e to your computer and use it in GitHub Desktop.
enemy laser script
void Update()
{
CalculateMovement();
}
void CalculateMovement()
{
transform.Translate(Vector3.down * _speed * Time.deltaTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment