Change animations to use the proper SequenceProvider
Remove references to the global "Game" and use the SequenceProvider of the current world/map.
This commit is contained in:
@@ -18,12 +18,15 @@ namespace OpenRA.Mods.RA.Effects
|
||||
{
|
||||
class PowerdownIndicator : IEffect
|
||||
{
|
||||
Actor a;
|
||||
Animation anim = new Animation("poweroff");
|
||||
readonly Actor a;
|
||||
readonly Animation anim;
|
||||
|
||||
public PowerdownIndicator(Actor a)
|
||||
{
|
||||
this.a = a; anim.PlayRepeating("offline");
|
||||
this.a = a;
|
||||
|
||||
anim = new Animation(a.World, "poweroff");
|
||||
anim.PlayRepeating("offline");
|
||||
}
|
||||
|
||||
public void Tick(World world)
|
||||
|
||||
Reference in New Issue
Block a user