Advertisement
kadyr

Untitled

Sep 25th, 2021
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Enemy : MonoBehaviour
  6. {
  7. protected int health;
  8.  
  9. void Start()
  10. {
  11.  
  12. }
  13. void Update()
  14. {
  15. Move();
  16. Attack();
  17. }
  18.  
  19.  
  20. public void ChangeHealth()
  21. {
  22. //изменение здоровья
  23. }
  24.  
  25. protected virtual void Attack()
  26. {
  27.  
  28. }
  29. protected virtual void Move()
  30. {
  31.  
  32. }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement