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

Resurssipalkit siirretty oikeelle

parent af42a2ef
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ public class City : MonoBehaviour
float y = gameObject.transform.position.y + 1f - lista.Length * 0.5f;
float z = gameObject.transform.position.z;
GameObject resrow = Instantiate<GameObject>(resrowPrefab);
resrow.GetComponent<ResourceRow>().SetRow(r, x + 1f, y, z);
resrow.GetComponent<ResourceRow>().SetRow(r, x - 2f, y, z);
}
/**
......
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