Abdula_2314124

Player

Feb 17th, 2024
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Directory
  4. {
  5.     class Player
  6.     {
  7.         public int health = 100;
  8.         public int armor = 50;
  9.         public int damage = 40;
  10.         //public string[] guns = { "Gun1" };
  11.  
  12.         //public void Move()
  13.         //{
  14.         //    Console.WriteLine("Я рухаюсь");
  15.         //}
  16.         //public void Rotate()
  17.         //{
  18.         //    Console.WriteLine("Повертаю");
  19.         //}
  20.  
  21.         public void TakeDamage(int damage)
  22.         {
  23.             health -= damage;
  24.         }
  25.         public void Death()
  26.         {
  27.             Console.WriteLine("Гравець Вмер");
  28.         }
  29.     }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment