Call Method from another Script using an int

Hey guys im trying to figure out how I can call a method from another script where an int is part of the name of the method.
So in my movement script i have a int named canopyType then I want to call a method from another script by basically going
CanopyScript.GetComponent<canopyScript>().flare("canopyType");
which then would call
flare0 in the canopy script.

Is there any way to to this? I have searched for it but I feel like im probably not searching for the right thing.

Thanks

Are you saying you have different methods like flare0() flare1() flare2() and you want to call one of them based on an int parameter? So yes technically you could do this with Invoke, but may I ask why you have this structure? What’s different between those methods?

I think there’s a good chance you can probably get away with just having one method with an int parameter that does everything.

Hey man appreciate the response. Yeah so yes there are multiple flare methods in my canopyScript. Basically I want it so that you can pick the canopy and then depending on which one you’ve picked (canopyType) it’ll call that flare. So if you’re flying canopyType 1 it will call flare1 and say you change your canopyType to 2 the same command will then call flare2.

Edit: Oh sorry and the reason I have different method is because each canopy handles differently