- Home /
Changing Animation Via Script on Prefab
Good Morning, still working on a flappy bird - like game. I´ve added a Ingame Shop with ingame currency and everything works just fine , BUT now i want to add skins to the shop
So whats happening is if you got enough ingame currency you can tap a button and buy a skin , now i want to change the animation of my Player Prefab via Script
Is there a way to do so? or is it better to change the Prefab in my main method to another skinned Prefab?
public void skin50()
{
if ((GearS - 50) > 0) {
GearS = GearS - 50;
kill50.kill();
}
}
This is where i want to change an Animation from a prefab
Thanks for reading :)
Your answer
Follow this Question
Related Questions
Saving customized transform in game 1 Answer
Rotating specific prefab - instantiated with Random.Range 2 Answers
Why Transform and not Prefab? 2 Answers
Unable to Instantiate prefab. Prefab may be broken 3 Answers
Array of prefabs 0 Answers