private void Deactivate() { _bubbleEffect.GetComponent <Animator>().SetBool("bubble_on", false); Invoke("DestroyBubble", 0.25f); ResetState(); DeactivateDelegate.Invoke(); }
IEnumerator End() { yield return(new WaitForSeconds(1)); PounceEffectAnimator.SetBool("thunderpounce_smash", true); Invoke("ResetAnimation", 0.25f); DamageAllBaddies(); ResetCollection(); DeactivateDelegate.Invoke(); }
private void ReturnToOriginAndTurnOff() { CalculateVelocity(_originalPlayerPosition); if (ToIntVector(transform.position) == ToIntVector(_originalPlayerPosition)) { GetComponent <Player>().enabled = true; _cameraScript.enabled = true; if (UpdateNoInteraction) { ResumeBaddieMovement(); } ResetCollections(); DeactivateDelegate.Invoke(); GetComponent <SpriteRenderer>().sortingOrder = 1; SlashEffectAnimator.SetBool("lighteningclaw", false); _activated = false; } }
private void LateUpdate() { if (!_active) { return; } if (PlayerHadLanded()) { DamageAllBaddies(); ResetCollection(); DeactivateDelegate.Invoke(); PounceEffectAnimator.SetBool("thunderpounce_smash", false); PounceEffectAnimator.SetBool("thunderpounce_jump", false); _active = false; return; } if (_apexReached && transform.position.y <= (_originPosition.y + 0.5F)) { GetComponent <Player>().enabled = true; } CalculateVelocity(); }
private void DeactivateUltimate() { GetComponent <Player>().enabled = true; _cameraScript.enabled = true; DeactivateDelegate.Invoke(); }