示例#1
0
        public override void SetColor(BuildingColor color)
        {
            if (this.color != color)
            {
                sprite = SpriteLoader.GetBuilding(color);

                RoadColor col;
                switch (color)
                {
                case BuildingColor.Default: col = RoadColor.Default; break;

                case BuildingColor.Red: col = RoadColor.Red; break;

                default: col = RoadColor.Default; break;
                }

                entrance.SetColor(col);
                this.color = color;
            }
        }