Пример #1
0
        static public void Run()
        {
            Console.WriteLine("------------Prototype------------");
            Unit    unit;
            Warrior warrior = new Warrior(-10, 15);

            unit = warrior.Clone();
            unit.Info();

            Archer archer = new Archer(4, 9);

            unit = archer.Clone();
            unit.Info();
        }