using Enemies.States; using UnityEngine; namespace Enemies { public class Enemy : MonoBehaviour { public float health = 10f; public float attackPower = 1; public GameObject target { get; set; } private float speed = 2f; public IState state { get; set; } // Start is called before the first frame update void Start() { Destroy(gameObject, 10f); } // Update is called once per frame void Update() { } } }