Skip to content

yigitozt/Unity_Character_Pathway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Unity_Character_Pathway

Character controller easy pathway drawing in editor.

1- Add this two script to your project. Make sure "PeopleControlSetButton.cs" placed in "Editor" folder.

2- Add "PedestrianControl.cs" to any character controller in the editor.

3- Move and place your character controller and press "Set initial position" on the inspector.

4- Move your character controller again to another position and press "Set position" on the inspector.

5- After setting positions adjust "Stop Timer","Speed" and "Seeking Distance" variables as you want.

Stop Timer : "Waiting time when character reaches a set position"

Speed : Movement speed

Seeking Distance : Seeks player in distance you set. If player close enough, character controller start to move.