#sulphur problem
1 messages · Page 1 of 1 (latest)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Destroy : MonoBehaviour
{
private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.collider.CompareTag("Destroy This"))
{
Debug.Log("lelelele");
Destroy(collision.gameObject);
}
}
}
already linked that to them. Though it was probably ignored
uhh
so why is it important
look another message that does nothing but wastes time
i did it
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CollisionMessage : MonoBehaviour
{
// Start is called before the first frame update
void OnCollisionEnter2D(Collision2D data)
{
Debug.Log("lelelelel");
}
}
and you removed the tag check?