Beispiel #1
0
        // Add building Component to the gameObject
        public static Residential CreateComponent(GameObject where,
                                                  ResidentialType parameter1,
                                                  ResidentialSize parameter2,
                                                  ResidentialVariation parameter3)
        {
            Residential myC = where.AddComponent <Residential>();

            myC.residential_type      = parameter1;
            myC.residential_size      = parameter2;
            myC.residential_variation = parameter3;

            return(myC);
        }
Beispiel #2
0
 // Overloaded Residential
 public static string getResidentialPath(ResidentialSize size)
 {
     return(getResidentialPath((int)size));
 }