Skip to content
Snippets Groups Projects
Commit 683fdd7a authored by Kimi Heinonen's avatar Kimi Heinonen
Browse files

fine tune

parent 92e3cbf1
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,8 @@ MonoBehaviour:
resourcePoolLevel: 0
roadLevel: 0
paneelienmaara: 0
shopPreFab: {fileID: 7162492650952366835, guid: f0354d4d550e4994cb346ed8fce67111,
type: 3}
--- !u!1001 &5416443199572362591
PrefabInstance:
m_ObjectHideFlags: 0
......
......@@ -57,7 +57,7 @@ BoxCollider2D:
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 0.67}
m_Size: {x: 1, y: 0.7}
m_EdgeRadius: 0
--- !u!212 &7162492650593089022
SpriteRenderer:
......@@ -479,7 +479,7 @@ BoxCollider2D:
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 0.66}
m_Size: {x: 1, y: 0.7}
m_EdgeRadius: 0
--- !u!212 &7162492651555988094
SpriteRenderer:
......@@ -598,7 +598,7 @@ BoxCollider2D:
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 3, y: 3.2}
m_Size: {x: 5, y: 5}
m_EdgeRadius: 0
--- !u!114 &7162492651648248339
MonoBehaviour:
......
......@@ -31,7 +31,8 @@ public class City : MonoBehaviour
public int paneelienmaara = 0;
[SerializeField]
GameObject shopPreFab;
// Start is called before the first frame update
void Start()
......@@ -169,8 +170,8 @@ public class City : MonoBehaviour
{
return workerlista;
}
public void OnMouseDown()
private void OnMouseEnter()
{
AddCollector();
Instantiate<GameObject>(shopPreFab);
}
}
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