Hello. I'm writing a script that must do things when certain gameObject's "active" state is changed. I could just call some method inside this script instead of "GameObject.SetActive", but i'm curious - is there any way to add listener to GameObject's "SetActive" function, or at least modify GameObject class to make it possible?
↧