SVN Conflict
Portfolio/Diary 2020. 3. 26. 19:48using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIPage_shop_main : MonoBehaviour
{
public UILabel lb_userGold;
public int userGold;
public UIPage_shop_buttons buttons;
public UIPage_shop_pannels pannels;
public UIPage_shop_popup_purchaseItem ui_popup_purchaseItem;
private void Awake()
{
GetUserGoldInfo();
if(UIScean_lobby_main.instance != null)
{
userGold = UIScean_lobby_main.instance.userGold;
lb_userGold.text = userGold.ToString();
}
Data_Loader.GetInstance().GetSkillDataById(1);
if(UIScean_lobby_main.instance != null)
{
userGold = UIScean_lobby_main.instance.userGold;
lb_userGold.text = userGold.ToString();
}
}
void Start()
{
buttons.btnAircrafts.onClick.Add(new EventDelegate(() =>
{
pannels.panAircrafts.gameObject.SetActive(true);
pannels.panParts.gameObject.SetActive(false);
}));
buttons.btnParts.onClick.Add(new EventDelegate(() =>
{
pannels.panParts.gameObject.SetActive(true);
pannels.panAircrafts.gameObject.SetActive(false);
}));
buttons.btnAlliances.onClick.Add(new EventDelegate(() =>
{
pannels.panAircrafts.gameObject.SetActive(false);
pannels.panParts.gameObject.SetActive(false);
}));
buttons.btnClose.onClick.Add(new EventDelegate(() =>
{
this.gameObject.SetActive(false);
UIScean_lobby_main.instance.userGold = this.userGold;
UIScean_lobby_main.instance.UIpages.uiPage_lobby_main.gameObject.SetActive(true);
}));
UIPage_shop_popup_purchaseItem.changeInUserPropertiesCall = () =>
{
GetUserGoldInfo();
};
}
public void GetUserGoldInfo()
{
userGold = UserInfo_Manager.GetInstance().GetProperties(eUserProperties.gold);
lb_userGold.text = userGold.ToString();
}
}
'Portfolio > Diary' 카테고리의 다른 글
2020. 2. 27 특성 창 기능 구현 (진행중) (0) | 2020.02.27 |
---|---|
2020. 2. 26 특성 창 기능 구현 (진행중) (0) | 2020.02.26 |
2020 - 02 - 18] Data load&save (0) | 2020.02.18 |