Files
OpenRA/OpenRa.Game/Traits/RenderBuildingCharge.cs
2009-12-31 13:20:20 +13:00

24 lines
479 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.Traits
{
/* used for tesla */
class RenderBuildingCharge : RenderBuilding, INotifyAttack
{
public RenderBuildingCharge(Actor self)
: base(self)
{
}
public void Attacking(Actor self)
{
Sound.Play("tslachg2.aud");
anim.PlayThen(GetPrefix(self) + "active",
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
}
}
}