void updateGlobalVars() { GameObject masterController = GameObject.Find("masterController"); globalShipParams gSP = masterController.GetComponent <globalShipParams>(); maxHealth = gSP.maxHealth; }
void updateGlobalVars() { GameObject masterController = GameObject.Find("masterController"); globalShipParams gSP = masterController.GetComponent <globalShipParams>(); yOffset = gSP.pathRenderYOffset; tubeDiameter = gSP.pathRenderWidth; }
void updateGlobalVars() { GameObject masterController = GameObject.Find("masterController"); globalShipParams gSP = masterController.GetComponent <globalShipParams>(); indicatorLightFrequency = gSP.indicatorLightFrequency; maxMoveStep = gSP.maxMoveStep; minMoveStep = gSP.minMoveStep; }