コード例 #1
0
 private void OnEnable()
 {
     mp_hasSetup = RoR2Application.isInSinglePlayer;
     instance    = this;
     NetworkUser.onLoadoutChangedGlobal += NetworkUser_onLoadoutChangedGlobal;
     UserProfile.onLoadoutChangedGlobal += UserProfile_onLoadoutChangedGlobal;
 }
コード例 #2
0
 private void OnDisable()
 {
     instance = null;
     NetworkUser.onLoadoutChangedGlobal -= NetworkUser_onLoadoutChangedGlobal;
     UserProfile.onLoadoutChangedGlobal -= UserProfile_onLoadoutChangedGlobal;
 }