i have this
public void Drops(Transform positionDrops){
if (Random.Range(1, 5) == spawnTime)
{
numeroAleatorio = Random.Range(1, 101);
if (numeroAleatorio <= 10)
{
Instantiate(Casco, positionDrops.position, Casco.transform.rotation);
}
and this
void OnTriggerEnter2D(Collider2D col)
{
if (col.tag == “Daño”)
{
Hp = Hp - Stats.AtackDamange;
Enemy.KnockBack2(transform.position.x);
if (Hp == 0)
{
Destroy(gameObject);
Stats.XP = Stats.XP + 10;
Set.Drops(transform.position); // here is the problem "
}
}