13 lines
292 B
C#
13 lines
292 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class UIAnchorToWorldPoint : MonoBehaviour
|
|
{
|
|
public Transform worldPoint;
|
|
void Update()
|
|
{
|
|
transform.position = TutorialManager.UICamera.WorldToScreenPoint(worldPoint.position);
|
|
}
|
|
}
|