示例#1
0
 void Start()
 {
     // Create a position finder to follow the target's position on screen.
     positionFinder = new OnScreenPositionFinder(GetComponentInParent <Canvas>().GetComponent <RectTransform>(), playerCamera);
 }
示例#2
0
 void Start()
 {
     // Create a new screenPosFinder from our parent canvas.
     screenPosFinder = new OnScreenPositionFinder(GetComponentInParent <Canvas>().GetComponent <RectTransform>(), playerCamera);
 }