Esempio n. 1
0
    public void OnLook(Vector3dataobject obj)
    {
        transform.LookAt(lookObj);

        var transformRotation = transform.eulerAngles;

        transformRotation.x  = 0;
        transformRotation.y += 90;
        transform.rotation   = Quaternion.Euler(transformRotation);
    }