示例#1
0
    void LookAtTarget(GameObject lookAtTarget)
    {
        Vector3 pos = lookAtTarget.transform.localPosition;

        pos.y = transform.localPosition.y;
        transform.LookAt(pos);
        view.LookTo(pos);
    }