bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/HUD.cs
2024-02-24 22:40:44 -05:00

20 lines
708 B
C#

using UnityEngine;
public class HUD : WPFMonoBehaviour
{
private void Start()
{
LevelStart levelStart = WPFMonoBehaviour.FindSceneObjectOfType<LevelStart>();
Vector3 position = ((!levelStart) ? Vector3.zero : levelStart.transform.position);
if ((bool)WPFMonoBehaviour.gameData.m_blueprintPrefab)
{
Transform transform = Object.Instantiate(WPFMonoBehaviour.gameData.m_blueprintPrefab, position, Quaternion.identity) as Transform;
transform.name = "BlueprintUI";
transform.parent = WPFMonoBehaviour.levelManager.transform;
if ((bool)WPFMonoBehaviour.levelManager.m_blueprintTexture)
{
transform.guiTexture.texture = WPFMonoBehaviour.levelManager.m_blueprintTexture;
}
}
}
}