void FixedUpdate() { if (_changeHeroButtonPressed) { HeroUtil.ChangeHero(); _changeHeroButtonPressed = false; SoundManager.Instance.SendMessage("PlaySFXSwap"); } }
void FixedUpdate() { heroStrongControl.ProcessHeroInput(GameInput); heroFastControl.ProcessHeroInput(GameInput); DeactivateTriggerButtons(); if (GameInput.changeHero) { HeroUtil.ChangeHero(); GameInput.changeHero = false; } }
void FixedUpdate() { if (IsActive) { updateSphereColor(); if (puzzleSolved) { ColorPanel.GetComponent <Renderer>().enabled = false; HeroUtil.ChangeHero(); colorsPuzzleActivator.activate(); } if (puzzleFail) { restartPuzzle(); puzzleController.setCurrentBox(puzzleController.SelectionBox1); puzzleFail = false; } } }