Exemplo n.º 1
0
 private void OnTriggerStay2D(Collider2D collision)
 {
     if (collision.gameObject.CompareTag("Ground") && !isWaiting)
     {
         isFalling = false;
         playerAnimation.setIsInAnimationFalse();
     }
     if (collision.gameObject.CompareTag("PowerUp"))
     {
         playerAnimation.ActivateGunAnimation();
         Destroy(collision.gameObject);
         isSuper = true;
         if (!letsGo)
         {
             isWaiting = true;
             if (!CoRunning)
             {
                 StartCoroutine(waiter_not_that_waiter_just_waiter(3f));
             }
             return;
         }
     }
 }