public void SetStation(StationModel.StationType stationType) { switch (stationType) { case StationModel.StationType.General: stationView.GetComponent <SpriteRenderer>().sprite = generalStation; break; case StationModel.StationType.Factory: stationView.GetComponent <SpriteRenderer>().sprite = factoryStation; break; case StationModel.StationType.Mining: stationView.GetComponent <SpriteRenderer>().sprite = miningStation; break; case StationModel.StationType.Planet: stationView.GetComponent <SpriteRenderer>().sprite = planetStation; break; case StationModel.StationType.Refinery: stationView.GetComponent <SpriteRenderer>().sprite = refineryStation; break; } }
public Station(SpaceModel stationLocation, StationModel.StationType newStationType, int newMetalAvail, int newMetalPrice, int newOrganicAvail, int newOrganicPrice, int newFuelAvail, int newFuelPrice, int newGasAvail, int newGasPrice, int newWaterAvail, int newWaterPrice, StationModel stationModel) { this.stationModel = stationModel; this.currentStation = stationLocation; stationType = newStationType; metalAvailable = newMetalAvail; metalPrice = newMetalPrice; organicAvailable = newOrganicAvail; organicPrice = newOrganicPrice; fuelAvailable = newFuelAvail; fuelPrice = newFuelPrice; gasAvailable = newGasAvail; gasPrice = newGasPrice; waterAvailable = newWaterAvail; waterPrice = newWaterPrice; }