Exemplo n.º 1
0
	public void Initialize(HUDPrefab content, ScreenSpace screenSpace, int windowId, Vector2 anchorMin, Vector2 anchorMax, float windowAlpha, HUD hud)
	{
		this.Content = content;
		this.screenSpace = screenSpace;
		this.WindowId = windowId;
		this.rectTransform.anchorMax = anchorMax;
		this.rectTransform.anchorMin = anchorMin;
		this.windowAlpha = windowAlpha;
		this.hud = hud;
		transform.SetParent(screenSpace.transform, false);
		if (content != null)
		{
			content.ApplyHUDChanges(transform, windowAlpha);
		}
	}
Exemplo n.º 2
0
	public void SetContent(HUDPrefab content, int windowId)
	{
		this.Content = content;
		this.WindowId = windowId;
		content.ApplyHUDChanges(transform, windowAlpha);
	}