public ElectricalViewModel() { NumOfStagesBD = ElectricModel.GetNumOfStages(); Arr = ElectricModel.GetPowerOfStages(); ThermoSwitchBD = ElectricModel.GetThermoSwitches(); PCHChecked = false; SelectedNumOfStages = NumOfStagesBD[0]; SelectedThermoSwitch = ThermoSwitchBD[0]; SelectedValue = 0; }
private void Start() { electricModel = GetComponent <ElectricModel>(); gameMange = GameObject.FindWithTag("Player").GetComponent <GameMange>(); }