// Add building Component to the gameObject public static Commercial CreateComponent(GameObject where, CommercialType parameter1, CommercialSize parameter2, CommercialVariation parameter3) { Commercial myC = where.AddComponent <Commercial>(); myC.commercial_type = parameter1; myC.commercial_size = parameter2; myC.commercial_variation = parameter3; return(myC); }
// Overloaded Commercial public static string getCommercialPath(CommercialSize size) { return(getCommercialPath((int)size)); }