private void OnEnable() { mp_hasSetup = RoR2Application.isInSinglePlayer; instance = this; NetworkUser.onLoadoutChangedGlobal += NetworkUser_onLoadoutChangedGlobal; UserProfile.onLoadoutChangedGlobal += UserProfile_onLoadoutChangedGlobal; }
private void OnDisable() { instance = null; NetworkUser.onLoadoutChangedGlobal -= NetworkUser_onLoadoutChangedGlobal; UserProfile.onLoadoutChangedGlobal -= UserProfile_onLoadoutChangedGlobal; }