Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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