728x90
반응형

분류 전체보기 221

[UNITY] Delegate / Event 를 생각하려 할 때 마다 까먹어서 적어두는 용

using UnityEngine; public class EventManager :MonoBehaviour { public static EventManager instance; public delegate void MyDelegate(); public event MyDelegate eventCall; void Awake() { instance = this; } public void EventCall() { eventCall(); } } using UnityEngine; public class Delegate_Sample : MonoBehaviour { void EventFunction() { Debug.Log("Success"); } public void OnButtonClick() { Debug.Log..

Unity 2020.09.01

[가디언테일즈] 영상 기록 #003 얻는 곳

다른 글들 보면 좌측 끝 방가서 책을 태우라고 하는데 좀 더 자세히 알려드리고자 적습니다 3-6 스테이지에서 우선 위 사진의 위치에서 화로를 들어줍니다(두 번째 사진은 혹시나 위로 던지실까봐 알려드리려고 찍었습니다 왼쪽으로 던지셔야해요) 그리고 위 사진의 뭔지 모를 그림이 걸려있는 곳에 불이 붙이면 아래처럼 문이 열리고 영상 기록 #003을 얻을 수 있습니다

잡다한 팁 2020.08.26

[Unity] Playfab Function 정리 -2

랜덤 박스 실행 public bool RandomBoxGrant(string catalogversion, string tableId) //랜덤박스 { // First, roll a random number and evaluate the drop table PlayFabServerAPI.EvaluateRandomResultTable(new PlayFab.ServerModels.EvaluateRandomResultTableRequest() { CatalogVersion = catalogversion, TableId = tableId }, result => { Debug.Log("Success"); }, fail => { Debug.Log("Fail"); }); } 유저 타이틀 데이터 저장/가져오기 publi..

Unity 2020.08.18

[Unity] Playfab Function 정리 -1

커스텀 로그인 public void OnClickGuestLogin() { PlayFabClientAPI.LoginWithCustomID(new LoginWithCustomIDRequest() { //디바이스 아이디로 커스텀 로그인 CustomId = SystemInfo.deviceUniqueIdentifier, // 기존 계정이 없다면 생성 CreateAccount = true }, result => { Debug.Log("Success"); }, (error) => { Debug.Log("Fail"); }); } 인벤토리 업데이트 public void SetInventoryCustomData(string itemInstanceID, Dictionary datas) { PlayFab.ServerMode..

Unity 2020.08.18
728x90
반응형