public NGUIHUD CreateWorldItemHud(Transform target, Vector3 offset) { GameObject newWorldItemHUDGameObject = NGUITools.AddChild(HUDEditorAnchor, NGUIHUDPrefab); NGUIHUD newWorldItemHud = newWorldItemHUDGameObject.GetComponent <NGUIHUD>(); newWorldItemHud.Initialize(target, offset); return(newWorldItemHud); }
public void RetireWorldItemHUD(NGUIHUD retiredHUD) { retiredHUD.gameObject.SetActive(false); retiredHUD.transform.localPosition = new Vector3(-20000f, 0f, 0f); mObjectsToDestroy.Enqueue(retiredHUD.gameObject); }