using UnityEngine; using System.Collections; public class Follow3DObject : MonoBehaviour { public Transform target; public Vector3 offset = new Vector3(0, 1, 0); void Update() { if (target != null) { transform.position = Camera.main.WorldToScreenPoin
using UnityEngine; using System.Collections; using UnityEngine.UI; public class HealthController : MonoBehaviour { //当前对象是血条还是蓝条 public bool isHealth = false; //虚拟轴,横轴,纵轴 private float hor,ver; //血条的最大宽度 private float healthMaxWidth = 470; //蓝条的最大宽度