Introduce WithSpriteBody trait
Add upgrade rules Add ISpriteBody
This commit is contained in:
@@ -147,7 +147,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
|
||||
self.World.AddFrameEndTask(w => EjectDriver());
|
||||
if (info.ThumpSequence != null)
|
||||
renderUnit.PlayCustomAnimRepeating(self, info.ThumpSequence);
|
||||
renderUnit.PlayCustomAnimationRepeating(self, info.ThumpSequence);
|
||||
deployed = true;
|
||||
self.QueueActivity(new Wait(info.ChargeDelay, false));
|
||||
self.QueueActivity(new CallFunc(() => Sound.Play(info.ChargeSound, self.CenterPosition)));
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
PlayCustomAnimation(self, info.OpenAnim, () =>
|
||||
{
|
||||
if (DefaultAnimation.HasSequence(info.UnloadAnim))
|
||||
PlayCustomAnimRepeating(self, info.UnloadAnim);
|
||||
PlayCustomAnimationRepeating(self, info.UnloadAnim);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
return;
|
||||
|
||||
open = false;
|
||||
PlayCustomAnimBackwards(self, info.OpenAnim, null);
|
||||
PlayCustomAnimationBackwards(self, info.OpenAnim, null);
|
||||
}
|
||||
|
||||
public override void Tick(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user