fixed value
This commit is contained in:
parent
033d00d01c
commit
3867e5166b
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ public class InteractionPanelController : MonoBehaviour {
|
|||
}
|
||||
|
||||
interactionsDropdown.AddOptions(optionsList);
|
||||
if (interactionsDropdown.value > interactionsDropdown.options.Count)
|
||||
interactionsDropdown.value = 0;
|
||||
_controller.SelectedInteraction = ((InteractionData)(interactionsDropdown.options[interactionsDropdown.value])).interaction;
|
||||
ActivePanel.mainPanel.SetActive(true);
|
||||
}
|
||||
|
|
Reference in a new issue