Abdula_2314124

Enemy

Feb 17th, 2024
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace Directory
  6. {
  7.     class Enemy
  8.     {
  9.         public int health = 100;
  10.         public int damage = 50;
  11.         //public void Move()
  12.         //{
  13.         //    Console.WriteLine("Пошук гравця");
  14.         //}
  15.  
  16.         public void TakeDamage(int damage)
  17.         {
  18.             health -= damage;
  19.         }
  20.         public void Death()
  21.         {
  22.             Console.WriteLine("Ворог Помер");
  23.         }
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment