Exemplo n.º 1
0
    public override Transform GetPrevCursorItem(int currentIndex)
    {
        int nextIndex = currentIndex - 1;

        if (nextIndex < 0)
        {
            nextIndex = menuChoices.Length - 1;
        }
        Transform prevMenuChoice = menuChoices[nextIndex];

        if (nextIndex == 0)
        {
            if (potion.description != "")
            {
                ActionDetails.ActionDescription(potion.description);
            }
        }
        else
        {
            if (ether.description != "")
            {
                ActionDetails.ActionDescription(ether.description);
            }
        }
        return(prevMenuChoice);
    }
Exemplo n.º 2
0
    public override Transform GetNextCursorItem(int currentIndex)
    {
        int       nextIndex      = (currentIndex + 1) % menuChoices.Length;
        Transform nextMenuChoice = menuChoices[nextIndex];

        if (nextIndex == (int)MenuOptions.Defend)
        {
            ActionDetails.ActionDescription(inputController.playerInfo.owner.defendAction.description);
        }
        else
        {
            ActionDetails.ResetDetails();
        }
        return(nextMenuChoice);
    }
Exemplo n.º 3
0
    public override Transform GetPrevCursorItem(int currentIndex)
    {
        int nextIndex = currentIndex - 1;

        if (nextIndex < 0)
        {
            nextIndex = menuChoices.Length - 1;
        }
        Transform prevMenuChoice = menuChoices[nextIndex];

        if (nextIndex == (int)MenuOptions.Defend)
        {
            ActionDetails.ActionDescription(inputController.playerInfo.owner.defendAction.description);
        }
        else
        {
            ActionDetails.ResetDetails();
        }
        return(prevMenuChoice);
    }
Exemplo n.º 4
0
    public override Transform GetNextCursorItem(int currentIndex)
    {
        int       nextIndex      = (currentIndex + 1) % menuChoices.Length;
        Transform nextMenuChoice = menuChoices[nextIndex];

        if (nextIndex == 0)
        {
            if (potion.description != "")
            {
                ActionDetails.ActionDescription(potion.description);
            }
        }
        else
        {
            if (ether.description != "")
            {
                ActionDetails.ActionDescription(ether.description);
            }
        }
        return(nextMenuChoice);
    }