internal static bool CheckAnyButtonDownOverrideHook(On.RoR2.InputBankTest.orig_CheckAnyButtonDown orig, InputBankTest self)
        {
            if (orig(self))
            {
                return(true);
            }
            var extraInputBankTest = self.GetComponent <ExtraInputBankTest>();

            return
                (extraInputBankTest.extraSkill1.down ||
                 extraInputBankTest.extraSkill2.down ||
                 extraInputBankTest.extraSkill3.down ||
                 extraInputBankTest.extraSkill4.down);
        }
示例#2
0
        internal static bool CheckAnyButtonDownOverrideHook(On.RoR2.InputBankTest.orig_CheckAnyButtonDown orig, InputBankTest self)
        {
            if (orig(self))
            {
                return(true);
            }
            var extraInputBankTest = self.GetComponent <CustomInputBank>();

            if (extraInputBankTest)
            {
                return(extraInputBankTest.weaponSwapSkill.down);
            }
            else
            {
                return(false);
            }
        }