public static void Main(string[] args) { Character1Class character1 = new Character1Class("Frodo"); SwordClass sword = new SwordClass("TestSword"); character1.Weapons.Add(sword); character1.Equip(sword); Console.ReadKey(); }
public static void Main(string[] args) { Character1Class character = new Character1Class("Zoltan the Powerful"); SwordClass sword = new SwordClass("Holy Avenger"); character.Equip(sword); character.Attack(); Console.ReadKey(); }