erice
New Member
Posts: 2
|
Post by erice on Jul 21, 2020 6:39:44 GMT
Hi there,
I just got EndlessBook, and I'm having a lot of fun with it. I wanted to extend the code with some additional functionality. I am reluctant to make changes inside an Asset Store script, as those changes would seem in danger of being lost in the next update.
My usual tactic is to use inheritance to add a new method, but because so many of the EndlessBook methods are private, rather than protected (in TouchPad.cs an Demo02.cs for example) child classes do not seem to be the intended way to interface with this code. Before I get too invested in reflections or copying huge chunks of code into my own scripts as a workaround, I thought I might ask around to see if there was a better way.
Thanks,
Eric
|
|
|
Post by echo17 on Jul 21, 2020 10:37:03 GMT
Sorry about that. I just published an update (v1.6.0) that changes all private methods and members to protected. It also virtualizes all methods for easy overwriting. Please let me know if I missed anything!
|
|
erice
New Member
Posts: 2
|
Post by erice on Jul 21, 2020 20:59:38 GMT
Thanks!
|
|