Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (bossManager.phase == BossPhase.phase1)
     {
         transform.Translate(Vector3.right * speed * Time.deltaTime);
     }
     if (bossManager.phase == BossPhase.phase2)
     {
         if (bossManager.qte != "" && InputManager.IsDown(bossManager.qte))
         {
             bossManager.athManager.FeedbackInput(new Color32(70, 180, 85, 255));
             StartCoroutine(WaitFeedback());
         }
         else
         {
             foreach (string key in bossManager.allKeyInputsName)
             {
                 if (key != bossManager.qte)
                 {
                     if (InputManager.IsDown(key))
                     {
                         bossManager.EndGame(false);
                         bossManager.athManager.FeedbackInput(new Color32(180, 70, 70, 255));
                     }
                 }
             }
         }
     }
 }