Question by
unity_YbsbbJ6di2G_cQ · Dec 12, 2017 at 02:44 PM ·
raycastcharactercharacter.move
Select character using click and work on same scrip
I'm trying simple task. I have 2 character on my scene. I want to select one of them using mouse click and then move it using keyboard. When I select 2nd character , it also have to work with same script for movement.
I'm not getting how to create this kind of General script, which can work with anynumber of character.
I'm able to select object using RayCast but can't connect them with single script.
Any help?
Comment
Your answer
Follow this Question
Related Questions
Problem with Rotating Object not as child 0 Answers
Raycast Check in GetKey? 0 Answers
character position calculation 0 Answers
Problem With a Multi-Jump C# script, robot 2d character controller 1 Answer