public static void LocalPlayerEnableNavigation() { PlayerController controller = PlayerManager.LocalPlayerController(); if (null != controller) { SelectionLogic selection = controller.GetComponent <SelectionLogic>(); if (null != selection) { selection.EnablePlayerSelectionControls(); } } }
public static void LocalPlayerDisableNavigation() { PlayerController controller = PlayerManager.LocalPlayerController(); if (null != controller) { CharacterTargetingComponent characterTargetingComp = controller.gameObject.GetComponent <CharacterTargetingComponent>(); if (null != characterTargetingComp) { characterTargetingComp.SetMovementTarget(Vector3.zero, true); } SelectionLogic selection = controller.GetComponent <SelectionLogic>(); if (null != selection) { selection.DisablePlayerSelectionControls(); } } }