@@ -37,11 +37,6 @@ namespace Content.Client.Chemistry.Visualizers
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (component.TryGetData<Angle>(VaporVisuals.Rotation, out var radians))
|
||||
{
|
||||
SetRotation(component, radians);
|
||||
}
|
||||
|
||||
if (component.TryGetData<Color>(VaporVisuals.Color, out var color))
|
||||
{
|
||||
SetColor(component, color);
|
||||
@@ -63,13 +58,6 @@ namespace Content.Client.Chemistry.Visualizers
|
||||
animPlayer.Play(VaporFlick, AnimationKey);
|
||||
}
|
||||
|
||||
private void SetRotation(AppearanceComponent component, Angle rotation)
|
||||
{
|
||||
var sprite = component.Owner.GetComponent<ISpriteComponent>();
|
||||
|
||||
sprite.Rotation = rotation;
|
||||
}
|
||||
|
||||
private void SetColor(AppearanceComponent component, Color color)
|
||||
{
|
||||
var sprite = component.Owner.GetComponent<ISpriteComponent>();
|
||||
|
||||
Reference in New Issue
Block a user