void OnTriggerStay2D (Collider2D other) {
Debug.Log("Test");
if (Input.GetKeyDown("D"))
{
if (other.gameObject.tag == "ZoneWin")
{
Destroy(gameObject);
}
}
}
}
I have the correct tags, correct everything as far as I can see. However, my gameObject just passes through the other sprite I put in. (This code is on the object that I am Instantiating.)