Example #1
0
        //Internal Methods
        protected override IEnumerator ModifierEffect()
        {
            player = FindObjectOfType <PlayerAbilityManager>();
            player.SetDoubleCooldown(true);
            float timer = 0f;

            while (timer <= modifierDuration)
            {
                timer += Time.deltaTime / Time.timeScale;
                yield return(null);
            }
            player.SetDoubleCooldown(false);
            ExpireModifier();
        }
Example #2
0
 public override void EndModifierEffects()
 {
     StopAllCoroutines();
     player.SetDoubleCooldown(false);
     ExpireModifier();
 }