using StatelessTraitInfo<> for some things
This commit is contained in:
@@ -10,14 +10,12 @@ namespace OpenRa.Game.Traits
|
||||
|
||||
class RenderUnitSpinner : RenderUnit
|
||||
{
|
||||
public Animation spinnerAnim;
|
||||
|
||||
public RenderUnitSpinner( Actor self )
|
||||
: base(self)
|
||||
{
|
||||
var unit = self.traits.Get<Unit>();
|
||||
|
||||
spinnerAnim = new Animation( self.Info.Name );
|
||||
var spinnerAnim = new Animation( self.Info.Name );
|
||||
spinnerAnim.PlayRepeating( "spinner" );
|
||||
anims.Add( "spinner", new AnimationWithOffset(
|
||||
spinnerAnim,
|
||||
|
||||
Reference in New Issue
Block a user