Exemple #1
0
 void FixedUpdate()
 {
     if (_changeHeroButtonPressed)
     {
         HeroUtil.ChangeHero();
         _changeHeroButtonPressed = false;
         SoundManager.Instance.SendMessage("PlaySFXSwap");
     }
 }
Exemple #2
0
    void FixedUpdate()
    {
        heroStrongControl.ProcessHeroInput(GameInput);
        heroFastControl.ProcessHeroInput(GameInput);

        DeactivateTriggerButtons();

        if (GameInput.changeHero)
        {
            HeroUtil.ChangeHero();
            GameInput.changeHero = false;
        }
    }
Exemple #3
0
 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;
         }
     }
 }