Skip to content
Snippets Groups Projects
Commit ebb23c65 authored by Erno Lokkila's avatar Erno Lokkila
Browse files

fixed collectormover npe

parent 4efb3f66
Branches
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ public class CollectorMover : MonoBehaviour
// Update is called once per frame
void Update()
{
if (col.GetMoveToTarget() == null) return;
//Vector3 target = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3 target = col.GetMoveToTarget().transform.position;
Vector3 dir = target - transform.position;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment