unity3d - Unity 2D use clones as independent gameobjects -


i'm making 2d unity game, in can move on 3 lanes , fire arrows affects specific lane.

in order i'm changing layer of arrow prefab every time move 1 lane another.

arrows change children of terrain on hit, when arrow prefab change layer, clone arrows same(even ones parented terrain in other lane)

how can make arrows parented terrain not affected arrow prefab change of layer?

thanks

you you're changing prefab layer, if that's correct, you're changing every clone made prefab. if want change each lane's arrows themselves, should change clones directly, not prefab.

maybe add 3 lists of arrows, 1 each lane, , each time fire arrow, have added list. can iterate on list changing every gameobject layer.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -