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