Create Production_workshop.prefab + Start UI display for prep

This commit is contained in:
Antoine H 2021-01-07 19:02:52 +01:00
parent 998cc81e0a
commit 6cce785d2c
8 changed files with 530 additions and 144 deletions

View file

@ -16,11 +16,15 @@ public class UITimer : MonoBehaviour
time.color = Color.green;
}
//TODO: Override DisplayIcon to set Icon
public void DisplayIcon(bool value)
{
icon.gameObject.SetActive(value);
}
public void DisplayIcon(Sprite newIcon)
{
icon.sprite=newIcon;
icon.gameObject.SetActive(true);
}
//Value : [0,1]
public void SetValue(float value)