static void Main(string[] args) { ////At start //HelloWorld helloWorld = new HelloWorld(); //helloWorld.SetSomeValue(5); Thief player = new Thief(); player.name = "Jon Snow"; Enemy enemy = new Enemy(); Weapon bron = new Weapon(12, 5); player.EquipWeapon(bron); player.Death += player_Death; player.action += player.Attack; player.action += player.Kick; player.action(enemy); player.inventory.Add(bron); Console.ReadKey(); }
public void EquipWeapon(Weapon weapon) { equippedWeapon = weapon; }