UI
-
유니티 AOS게임 만들기 - 체력바 UI 구현유니티 2022. 5. 23. 12:55
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class hp_mp_update : MonoBehaviour { public Slider hp_slider; public Slider mp_slider; // public Slider exp_slider; 아직 사용x public Text hp_text; public Text mp_text; // public Text exp_text; 아직 사용x public Camera cam; public Stats stats; void Start(){ cam = Camera.main; stats = cam.GetCompon..