본문 바로가기
728x90

R&D3

[R&D] UI small Stage Map UIPlayer Move UI상의 Stage Map에서 UIPlayer가 선택한 맵으로 이동하는 연출 (레퍼런스 : 프로즌시티)을 표현하고 싶었다. 처음에는, UIStagePlayer의 CMove 코루틴을 목표를 position으로 잡았더니 어떤 경우에는 멈추기도 하고 어떤 경우에는 멈추지 않아 계속해서 코루틴이 중복되는 현상이 발생하였다. 그런 고민 중에 추천영상으로 뜬 오늘코딩 채널의 강의를 보고 문제를 해결하였다. https://youtu.be/_QOvSLCXm7A using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UIMap : MonoBehaviour { public B.. 2023. 5. 1.
[R&D] Ticket charge 앞의 Energy Slider에서 오프라인에서 접속하였을 경우 추가, ticket에 맞게 변경 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System; public class UIEnergy : MonoBehaviour { public TMP_Text txtTime; public TMP_Text txtEnergy; public Button btnUseEnergy; private int energy = 5; private int maxEnergy = 5; private int energyTime = 3; private bool charg.. 2023. 4. 11.
[R&D] Energy bar Slider 기기의 시간을 가져오는 DateTime과 DateTime간의 간격을 저장하는 TimeSpan using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System; public class UIEnergy : MonoBehaviour { public Slider energySlider; public TMP_Text txtTime; public TMP_Text txtEnergy; public Button btnUseEnergy; private int energy = 5; private int maxEnergy = 5; private int energyT.. 2023. 4. 11.
728x90