I mean : i have my player and i have 3 slot. in this slot, i can put monster. Before play i assign monster into this slot. When game start i want this [ when i clic on the slot, my player do a transform animation then monster take his place. I precise that each monster have their proper abilities and script]
If so, I think you need two player controller scripts – one attached to the player, and one attached to the monster. When you switch to the monster, disable the player and enable the monster. This should activate the controller script on the monster, allowing you to move it around. You will also need to set the monster’s transform to equal the player’s transform, so the monster starts in the correct position.
The more details you can give us, the easier it will be for us to help you. Some useful questions to answer would be:
Which part of what you’re trying to do is failing?
What’s happening instead?
Which scripts are attached to which GameObjects, and what do they do?
Show us the script you’re trying to use to switch from player to monster.