1
Support / Re: Is it possible to get at prefab data in a tk2dTileMap?
« on: May 20, 2014, 09:16:11 pm »
Thx for your reply.
Unfortunetely I need actual coordinates, not just some string to distinguish the object. But I already managed to handle that.
Well, I had another idea. Maybe if you would like it, you could consider implementing it someday.
What about sending message to instantiated prefab objects in tileMap? Something like
That way, if someone would want to perform some coordinate-specific logic, he would implement mentioned method.
Unfortunetely I need actual coordinates, not just some string to distinguish the object. But I already managed to handle that.
Well, I had another idea. Maybe if you would like it, you could consider implementing it someday.
What about sending message to instantiated prefab objects in tileMap? Something like
Code: [Select]
void OnTiled(int x, int y)
That way, if someone would want to perform some coordinate-specific logic, he would implement mentioned method.