Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class EnemyHealth : MonoBehaviour
- {
- public Transform target;
- void OnGUI ()
- {
- Vector3 wantedPos = Camera.main.WorldToScreenPoint (target.position);
- GUI.Label(new Rect(wantedPos.x, wantedPos.y, 100, 20), "Darth Valdemort!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement