Ejemplo n.º 1
0
 public SolutionRow(int houseNumber, HouseColour houseColor,
                    Drink drink, Nationality nationality, Smoke smoke, Pet pet)
 {
     HouseNumber = houseNumber;
     HouseColour = houseColor;
     Drink       = drink;
     Nationality = nationality;
     Smoke       = smoke;
     Pet         = pet;
 }
Ejemplo n.º 2
0
 // Sets up the house assiging its colour to its renderer and creating the object that is used to uniquely identify it
 public void Setup(Material wallMaterial, HouseColour colour, GameObject packageTypePrefab, PackageType packageType)
 {
     houseInfo = new HouseStruct(colour, packageType);
     foreach (MeshRenderer renderer in renderers)
         renderer.material = wallMaterial;
 }
Ejemplo n.º 3
0
 public HouseStruct(HouseColour colour, PackageType packageType)
 {
     this.colour = colour;
     this.packageType = packageType;
 }
Ejemplo n.º 4
0
 public HouseStruct(bool random)
 {
     this.colour = (HouseColour)Random.Range(0, System.Enum.GetNames(typeof(HouseColour)).Length);
     this.packageType = (PackageType)Random.Range(0, System.Enum.GetNames(typeof(PackageType)).Length);
 }