Skip to content
Snippets Groups Projects
Commit 72c77016 authored by Moritz Meyerhof's avatar Moritz Meyerhof
Browse files

Bug Fix Arrow direction

parent 61d56a52
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,15 @@ public class ArrowController : MonoBehaviour
// Update is called once per frame
void Update()
{
rb.velocity = transform.up * -1 * direction * speed;
rb.velocity = transform.up * -1 * speed;
}
void OnTriggerEnter2D(Collider2D other)
{
Destroy(gameObject);
if (other.CompareTag("AntiPlayer"))
{
Debug.Log("Got here");
Destroy(gameObject);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment