コード例 #1
0
ファイル: Commercial.cs プロジェクト: lcfcosta/CityFuture
        // 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);
        }
コード例 #2
0
 // Overloaded Commercial
 public static string getCommercialPath(CommercialSize size)
 {
     return(getCommercialPath((int)size));
 }