This is not the same as function. In Function collider other, colliding objects send info about objects while in this if statment you just test variables. You could store thoese variables in colliding function
Well you refferencing is right, maybe it is wrong in part isTouching, or maybe at start of this object, object death is not predent, also i think it is faster and better to find with tag
The problem is that you’re trying to call the IsTouching function on the class and not on an object of that class. If a collision happens, you need to check if the colliding object is the “death” object, right? That means if the colliding object is called “other”, then you need to do “other == Death” or “GetComponent().IsTouching(Death)” or something.