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); }
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); }
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); }
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); }