Exemple #1
0
        public NGUIHUD CreateWorldItemHud(Transform target, Vector3 offset)
        {
            GameObject newWorldItemHUDGameObject = NGUITools.AddChild(HUDEditorAnchor, NGUIHUDPrefab);
            NGUIHUD    newWorldItemHud           = newWorldItemHUDGameObject.GetComponent <NGUIHUD>();

            newWorldItemHud.Initialize(target, offset);
            return(newWorldItemHud);
        }
Exemple #2
0
 public void RetireWorldItemHUD(NGUIHUD retiredHUD)
 {
     retiredHUD.gameObject.SetActive(false);
     retiredHUD.transform.localPosition = new Vector3(-20000f, 0f, 0f);
     mObjectsToDestroy.Enqueue(retiredHUD.gameObject);
 }