Exemplo n.º 1
0
    public static void LocalPlayerEnableNavigation()
    {
        PlayerController controller = PlayerManager.LocalPlayerController();

        if (null != controller)
        {
            SelectionLogic selection = controller.GetComponent <SelectionLogic>();
            if (null != selection)
            {
                selection.EnablePlayerSelectionControls();
            }
        }
    }
Exemplo n.º 2
0
    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();
            }
        }
    }