How not to load the same characters in each scene?

0

My problem is that I have 60 characters for a game and I do not want to and I do not know if it is necessary to load those 60 characters in my 10 scenes.

What I have in mind is that if they can be created in a specific place on the terrain of each scene and with certain modifications such as size, their attack and movement animations, everything from code or if there is another way.

    
asked by Abraham.P 19.07.2017 в 13:11
source

1 answer

3

To load them as needed, you must have the characters in a folder called "Resources" and instantiate them at runtime according to your need:

GameObject myplayer= Instantiate(Resources.Load("personaje01", typeof(GameObject))) as GameObject;
    
answered by 02.08.2017 / 15:24
source