Sync superweapon activate animation
This commit is contained in:
@@ -5,8 +5,18 @@ using System.Text;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class Chronosphere
|
||||
class Chronosphere : IResolveOrder
|
||||
{
|
||||
public Chronosphere(Actor self) { }
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
{
|
||||
if (order.OrderString == "PlayAnimation")
|
||||
{
|
||||
var rb = self.traits.Get<RenderBuilding>();
|
||||
if (rb != null)
|
||||
rb.PlayCustomAnim(self, order.TargetString);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user