Hey Guys !
I have fast question. I wish to archine with AC similar movement as here
I mean we ofc can move with "Point and clik" settings but additional i wish to move player instantly when keep pressing mouse button and that i can archive using different setting like "straight to coursor"
There is a way to mix these two some way ?
Thanks!
Comments
if (Input.GetButton ("Fire1"))
{
AC.KickStarter.settingsManager.movementMethod = MovementMethod.Drag;
}
else
{
AC.KickStarter.settingsManager.movementMethod = MovementMethod.PointAndClick;
}
Note that any field in the Settings Manager can be changed through scripting - just right-click on the field's label to get an option to copy a script reference to it.
Regarding the NavMesh borders, Drag movement works like Direct movement - and relies on Colliders to prevent passing through walls, not NavMeshes. For your scenes to work with both Direct and Point And Click, place down NavMeshes and colliders / CollisionCubes along the walls. The 3D Demo scene is designed in this way - you can use that to test with.