I am trying to create one snippet of code that will change which LCDs the ouput is displayed on, based on which Airlock is tasked to Pressurize/Depressurize. Currently, I have this:
Help with variable casting - Airlock Pressurize script
Code:
public void Pressurize(int airlockNum) { switch(airlockNum) { case 1: vent = ventOne; inDoor = inDoorOne; outDoor = outDoorOne; light = warnLightOne; airlock = "Airlock 1 "; inLCDGrp =...