Exemplo n.º 1
0
 void ShowPrompt(PromptText prompt)
 {
     StopAllCoroutines();
     this.prompt.text  = prompt.text;
     this.prompt.color = prompt.color;
     StartCoroutine(PromptMove());
 }
Exemplo n.º 2
0
        IEnumerator RemoveFireBoost(float boost, float time, Color tint)
        {
            yield return(new WaitForSeconds(time));

            attackRate *= boost;
            PromptText prompt = "- Firerate";

            prompt.color = tint;
            Message <PromptText> .Raise(prompt);
        }
Exemplo n.º 3
0
        IEnumerator RemoveSpeed(float strength, float length, Color tint)
        {
            yield return(new WaitForSeconds(length));

            speed -= strength;
            PromptText prompt = "- Speed";

            prompt.color = tint;
            Message <PromptText> .Raise(prompt);
        }
Exemplo n.º 4
0
        IEnumerator DoInvincible(float time, Color tint)
        {
            StopCoroutine("DoInvulnerab");
            vulnerable = false;
            yield return(new WaitForSeconds(time));

            vulnerable = true;
            PromptText prompt = "- Invincibility";

            prompt.color = tint;
            Message <PromptText> .Raise(prompt);
        }