Exemple #1
0
    public void DisplayTimedBuff(Buff b)
    {
        DisplayBuff new_display_buff = Instantiate(buff_prefab, buff_holder.transform);

        new_display_buff.SetIcon(b.icon);
        new_display_buff.SetTime(b.buff_length);
        new_display_buff.SetBarColor(b.color);
    }
Exemple #2
0
    public void DisplayTimedBuff(PowerUp p)
    {
        DisplayBuff new_display_buff = Instantiate(buff_prefab, buff_holder.transform);

        new_display_buff.SetIcon(p.icon);
        new_display_buff.SetTime(p.length);
        new_display_buff.SetBarColor(Color.green);
    }