我的文字自动翻转

My text get flipped automaticly

所以这是我的代码

public Transform target;
void Update()
{
    if (target != null)
    {
        transform.LookAt(target);
    }
}

这是假设在任何状态下查看播放器,但它是如何让我的文本网格翻转的 整体看起来如何:

https://gyazo.com/6ae1b42508bbd6b8bcb168ca2cdeca28

用这个代替 lookAt

transform.rotation = Quaternion.LookRotation(transform.position - target.position);