[SHEKELS]reider207 ghost

This commit is contained in:
RavMorgan
2023-05-14 02:35:20 +03:00
committed by Aviu00
parent 36185582b4
commit f1c9f1ba2b
6 changed files with 39 additions and 1 deletions

View File

@@ -21,5 +21,10 @@ public sealed class CustomGhostVisualizer : VisualizerSystem<GhostComponent>
{
args.Sprite.Color = args.Sprite.Color.WithAlpha(alpha);
}
if (AppearanceSystem.TryGetData<Vector2>(uid, CustomGhostAppearance.SizeOverride, out var size, args.Component))
{
args.Sprite.Scale = size;
}
}
}