Enemies half done
This commit is contained in:
parent
eaa8cdd462
commit
16507f4121
93 changed files with 31744 additions and 119 deletions
|
@ -12,11 +12,5 @@ namespace Level8 {
|
|||
public void AddForce(int direction) {
|
||||
GetComponent<Rigidbody2D>().velocity = Vector2.right * direction * bulletSpeed;
|
||||
}
|
||||
|
||||
void OnCollisionEnter2D(Collision2D other) {
|
||||
if (other.gameObject.CompareTag("Enemy")) {
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue