Example #1
0
        public static Part_of_info getinstance(string name, int width, int height, string color)
        {
            if (instance == null)
            {
                instance = new Part_of_info(name, width, height, color);
            }

            return(instance);
        }
Example #2
0
 public void Start(string _name, int _width, int _height, string _color)
 {
     part = Part_of_info.getinstance(_name, _width, _height, _color);
 }