mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
xd
This commit is contained in:
1 parent
e4e3a10ed8
commit
af471f0232
1 file changed
-6
@@ -23,12 +23,6 @@ public static class Extensions
|
||||
(byte)Mathf.Clamp(color.b - darknessAmount, 0, 255), byte.MaxValue);
|
||||
}
|
||||
|
||||
public static void SetOutline(this SpriteRenderer spriteRenderer, bool active, Color color)
|
||||
{
|
||||
spriteRenderer.material.SetFloat(ShaderID.Outline, active ? 1f : 0f);
|
||||
spriteRenderer.material.SetColor(ShaderID.OutlineColor, color);
|
||||
}
|
||||
|
||||
public static string? Truncate(this string? value, int maxLength, string truncationSuffix = "…")
|
||||
{
|
||||
return value?.Length > maxLength
|
||||
|
||||
Reference in new issue
Block a user