i try make enemy health slider or any uI just show the health of Enemy Over head
please i want make that quickly can you help me please that is my code i work with UFPS ,, public float MaxHealth = 1.0f; public float CurrentHealth = 0.0f; public Slider Healthh; protected virtual void Awake() { CurrentHealth = MaxHealth; } protected virtual void update() { Healthh.value = CurrentHealth/MaxHealth; }
`
Comment
Your answer
Follow this Question
Related Questions
Why is this script not working? 2 Answers
Prefab UI Slider misses the fill and background items... 0 Answers
Always pickup closest item? 0 Answers
Image UI not enabling C# SOLVED 1 Answer