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); }
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); }
public void DisplayBuff(IBuff b) { DisplayBuff new_display_buff = Instantiate(buff_prefab, buff_holder.transform); new_display_buff.SetBuff(b); }