From 4d0e121b589bc600abdd568d83740d7cd18e15df Mon Sep 17 00:00:00 2001
From: Tuisku Polvinen <tumipo@utu.fi>
Date: Sat, 2 Mar 2019 19:12:48 +0200
Subject: [PATCH] Revert "mustikkmustikkaaMerge branch 'master' of
 https://gitlab.utu.fi/eolokk/game_jam19"

This reverts commit f1617c600f8a815c32d085daab1cf1366e75b860
---
 Assets/Scripts/Collector.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Assets/Scripts/Collector.cs b/Assets/Scripts/Collector.cs
index 158be9a..47fe40e 100644
--- a/Assets/Scripts/Collector.cs
+++ b/Assets/Scripts/Collector.cs
@@ -57,7 +57,7 @@ public class Collector : MonoBehaviour
             }
         }
         if (target != null)
-            transform.position = Vector3.MoveTowards(new Vector3(transform.position.x, transform.position.y,transform.position.z), move_to.transform.position, speed * Time.deltaTime);
+            transform.position = Vector2.MoveTowards(new Vector2(transform.position.x, transform.position.y), move_to.transform.position, speed * Time.deltaTime);
     }
     private void OnTriggerEnter2D(Collider2D collision)
     {
-- 
GitLab