Question by
llegobego · Jun 05, 2017 at 08:31 AM ·
comparetag
My object is not dissapearing
void OnTriggerEnter2D (Collider2D other){
if (other.gameObject.CompareTag("OrangeStuff"))
UFO.SetActive (false);
loseText.text = "You Lose!";
}
It is colliding however the if statement is not being met, is there something wrong in the editor or this code?
Comment