I am using the 3rd party library Google VR in Unity. Within one C#-source file of that lib, I add a static method call to a class LibClass like this:
void onPrerender() {
MyOwnClass.staticMethod();
(continue with original method call...)
}
But every time I update the library, the call to MyOwnClass.staticMethod() is lost and I have to re-add it manually. I can not subclass LibClass, because the library would always call LibClass and not LibSubClass. Is there a way to programmatically add the call to staticMethod() to LibClass? Or any other way?
Aucun commentaire:
Enregistrer un commentaire