Beispiel #1
0
    public IEnumerator VAMPIRIC(CentralNervousSystem sender, float effectValue, float effectTime)
    {
        float count = 0;

        //cns.PostMessage ("Vampiric Effect!", Color.magenta);
        while (count <= (int)effectTime)
        {
            yield return(new WaitForSeconds(1.0f));

            cns.ChangeHealth((int)-effectValue, Color.magenta);
            sender.ChangeHealth((int)effectValue, Color.magenta);
            count++;
        }
    }
Beispiel #2
0
 public void TakeDamage(int amount, Color c)
 {
     cns.ChangeHealth((int)(-amount * amplifier), c);
 }