SFA-CS / PredatorPreyProject

1 stars 1 forks source link

Avatar is not transferring correctly #11

Closed Boezienko closed 3 months ago

Boezienko commented 3 months ago

When making a custom game, we are swapping out 'Prey' and 'Predator' child game objects, and each of these have various components with their own, unique properties. The Avatar script is one such property. We are having issues transferring the original child game object's Avatar property to the new game object's Avatar property.

Boezienko commented 3 months ago

We've been trying to do everything in the prefab loader. Next time try to maybe see if we can pull the Avatar from the GameManager. Another thing we could try is instead of replacing the prefabs, maybe see if we can just change out the sprite.

Boezienko commented 3 months ago

We fixed it by not swaping the prefabs, but rather just changing the sprites