//-------------------------------------------------------- // [Author]: 玩个游戏 // [ Date ]: Monday, August 14, 2017 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; public class PopupMessage:MonoBehaviour { [SerializeField] Text m_Text; public string content { get; set; } bool m_Active; public bool isActive { get { return this.m_Active; } set { this.m_Active = value; } } Vector3 m_TargetPosition; public Vector3 targetPosition { get { return this.m_TargetPosition; } set { this.m_TargetPosition = value; } } private void LateUpdate() { if(Vector3.Distance(targetPosition,this.transform.localPosition) > .1f) { } } }