private void CheatsManager_OnCheatUpdated(string key, CheatType cheatType) { if (key != cheatKey) { return; } doubleJump = CheatsManager.GetBool(key); }
void OnEnable() { CheatsManager.OnCheatChanged += CheatsManager_OnCheatUpdated; doubleJump = CheatsManager.GetBool(cheatKey); }