Esempio n. 1
0
 private void FixedUpdate()
 {
     if (superPower.GetObjIsMoving() && GetComponent <Rigidbody2D>().velocity == Vector2.zero)
     {
         myAnimator.SetBool(fireBubbleBlowBoolName, true);
     }
 }
Esempio n. 2
0
 private void FixedUpdate()
 {
     if (superPower.GetObjIsMoving() && GetComponent <Rigidbody2D>().velocity == Vector2.zero)
     {
         myAnimator.SetBool(thunderBubbleBlowBoolName, true);
         Destroy(gameObject, 0.2f);
     }
 }