Exemplo n.º 1
0
 /// <summary>
 /// Prepare all monsters and relevant panels (Actions, Status) for the player's turn
 /// </summary>
 private void StartPMTurn()
 {
     DisplayActivePartyMember();
     EnableAllMonsterSelection();
     SetMonsterNavigation();
     actionsPanel.SetHorizontalNavigation(partyPanel); // temporary, in the future will need to check adjacent panels first
     partyPanel.EnableButtons();
     partyPanel.SetHorizontalNavigation();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Displays the current event to the player
        /// </summary>
        public void DisplayEvent()
        {
            Debug.Log(eventBackground);
            Debug.Log(currentEvent);
            eventBackground.sprite = GetBGSprite(currentEvent.bgPackName);
            if (currentEvent.promptKey == "combat_event")
            {
                eventDescription.SetText(currentSubArea.GetCombatPrompt());
                GetCombatEvent();
            }
            else
            {
                if (currentEvent.promptKey == "nothing_event")
                {
                    eventDescription.SetText(currentSubArea.GetNothingPrompt());
                }
                else
                {
                    eventDescription.SetText(currentEvent.promptKey);
                }

                if (currentEvent.spriteNum > 0)
                {
                    ShowEventDisplays();
                }
                else
                {
                    HideEventDisplays();
                }

                statusPanel.DisplayPartyMember(PartyManager.instance.GetPartyMembers()[0]);
                actionsPanel.Init(currentEvent.isLeavePossible);
                actionsPanel.SetInteractionActions(currentEvent.interactions);
                actionsPanel.SetHorizontalNavigation(partyPanel);
            }
        }