コード例 #1
0
 private void PlayerCharacterMasterController_Awake(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self)
 {
     orig(self);
     if (!LoadingFromSave)
     {
         // this sets the initial drop value; overrides the initial value of 0.5f set in PlayerCharacterMasterController()
         self.SetFieldValue("lunarCoinChanceMultiplier", DropChance.Value);
     }
 }
コード例 #2
0
 private void PlayerCharacterMasterController_Awake(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self)
 {
     orig(self);
     self.SetFieldValue("lunarCoinChanceMultiplier", DropChance.Value);
 }
コード例 #3
0
 private void PlayerCharacterMasterController_Awake(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self)
 {
     orig(self);
     self.gameObject.AddComponent <ClickToSpawnAsUser>().player = self;
 }
コード例 #4
0
 internal static void AwakeHook(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self)
 {
     orig(self);
     self.gameObject.AddComponent <ExtraPlayerCharacterMasterController>();
 }