Question by
HighPix3l · Mar 10, 2016 at 04:12 PM ·
c#playerscript.player movement
Transfering script to other game objects via code (Unity 2D)
Hey Everyone, is there a way to transfer a script to another object via code? For example, lets say there is a cube (I will address the cube as player) that has a player controller script on it and there is a circle right next to the player. I want to input a key (any key that is specified in the script) that will allow me to disable the cube's player controller script and place it in the circle. This should allow me to controller now the circle.
Comment
Your answer
Follow this Question
Related Questions
Error in camera script 1 Answer
Game working in pc but not in Android While Testing 0 Answers