I would like to trigger some custom C# code by pressing a menu button. If I understand correctly, that requires adding that code to OnElementClick() inside MenuSystem.cs. Does that mean that my custom code should be added to MenuSystem.cs after every AC upgrade? Not a big deal, but is there any way to keep custom code in a separate file?
Comments
Editing MenuSystem is still perfectly viable, though. You don't need to re-write it after every AC upgrade - just don't re-import it. I ensure that no changes are ever made to it on the "official" side, so that a modified script by you will always work regardless of the AC version.