Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _3._3
- {
- class Program
- {
- static void Main(string[] args)
- {
- Player player = new Player(100, 25, 50);
- player.ShowPlayer();
- }
- }
- class Player
- {
- public int Health;
- public int Armor;
- public int Damage;
- public Player(int health, int armor, int damage)
- {
- Health = health;
- Armor = armor;
- Damage = damage;
- }
- public void ShowPlayer()
- {
- Console.WriteLine("У вашего игрока: " +
- "\nЗдоровья: " + Health +
- "\nБрони: " + Armor +
- "\nУрона: " + Damage);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment