Created
October 3, 2021 02:30
-
-
Save curious-username/ddd5d9b102af4253035dc38e21de289e to your computer and use it in GitHub Desktop.
enemy laser script
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 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