RedditPP Mascot

RedditPP

r/unity • … • u/avah_crowe

Is there an easy way to search a list of objects for a specific list of variables?

I'm trying to put together a helldivers-esk stratagem function for a project.

I have a list of available abilities, each with a list of strings containing its button combo, and i have another list of strings that contains the buttons you've pressed. Is there a simple way to query the list of abilities to find one with a combo that match the input?

— 0