예제 #1
0
파일: ItemMenu.cs 프로젝트: DataEx/JRPG
    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);
    }
예제 #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);
    }
예제 #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);
    }
예제 #4
0
파일: ItemMenu.cs 프로젝트: DataEx/JRPG
    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);
    }