20 lines
443 B
C#
Raw Normal View History

2025-09-24 11:24:38 +05:00
using UnityEngine;
namespace TPSBR
{
public class BlockBillboard : MonoBehaviour
{
protected void Start()
{
if (transform.parent.localScale.x < 0f)
{
// Parent is mirrored, flip billboard so it is shown correctly
var scale = transform.localScale;
scale.x = -scale.x;
transform.localScale = scale;
}
}
}
}