Esempio n. 1
0
    void Set_TopInfo()
    {
        text_money.text = _user.Get_user_goods(ITEMTYPE.GOLD).ToString();
        text_gem.text   = _user.Get_user_goods(ITEMTYPE.GEM).ToString();

        //레벨
        int lv = _user.Get_user_goods(ITEMTYPE.LV);

        text_UserLv.text = string.Format("Lv.{0}", lv);

        //경험치 퍼센트
        TableDataManager table = TableDataManager.instance;
        int nowExp             = _user.Get_user_goods(ITEMTYPE.EXP);
        int nowLvNeedExp       = 0;
        int nextLvNeedExp      = 0;

        if (table.Infos_UserLvs.ContainsKey((byte)(lv + 1)))
        {
            nextLvNeedExp = (int)table.Infos_UserLvs[(byte)(lv + 1)].UserExp;
        }

        if (table.Infos_UserLvs.ContainsKey((byte)(lv)))
        {
            nowLvNeedExp = (int)table.Infos_UserLvs[(byte)(lv)].UserExp;
        }
        float expPersant = (float)(nowExp - nowLvNeedExp) / (float)(nextLvNeedExp - nowLvNeedExp);

        text_Exp.text = string.Format("{0:f2}%", expPersant * 100f);

        //광고 관련 UI 설정
        Set_AdUI();
    }
Esempio n. 2
0
    public void Set_buySetItem(List <uint> _buyItemLst, int _setIdx)
    {
        setIdx     = _setIdx;
        buyItemLst = _buyItemLst;

        TableDataManager table = TableDataManager.instance;
        int totalPrice         = 0;

        for (int i = 0; i < buyItemLst.Count; i++)
        {
            //아이템 활성
            Lst_Items[i].SetActive(true);
            //아이템이미지
            Lst_ImageBuyItem[i].sprite = ImageManager.instance.Get_Sprite(buyItemLst[i].ToString());

            if (table.Infos_weapons.ContainsKey(buyItemLst[i]))
            {
                totalPrice += (int)table.Infos_weapons[buyItemLst[i]].SellItNum;
            }
            if (table.Infos_Decos.ContainsKey(buyItemLst[i]))
            {
                totalPrice += (int)table.Infos_Decos[buyItemLst[i]].SellItNum;
            }
        }


        //가격
        Text_Price.text = totalPrice.ToString();
    }
Esempio n. 3
0
    void Process_userLvShowing()
    {
        User user = UserDataManager.instance.user;
        //레벨
        int nowLv = user.Get_user_goods(ITEMTYPE.LV);

        text_CurUserlv.text = nowLv.ToString();

        TableDataManager table = TableDataManager.instance;

        if (table.Infos_UserLvs.ContainsKey((byte)nowLv))
        {
            basicRwdNum = (int)table.Infos_UserLvs[(byte)nowLv].RwdItNum;
        }

        //보상량
        text_rwdNum.text = basicRwdNum.ToString();

        //광고보기시 더받는 배율
    }
Esempio n. 4
0
        private void InitManager()
        {
            Logger = new LoggerManager();
            Debug  = new DebugManager();
            Event  = new EventCenter();
            Time   = new TimeManager();
            Pool   = new PoolManager();
            FSM    = new FsmManager();
            Table  = new TableDataManager();
            Scene  = new SceneLoaderManager();
            Sound  = new SoundManager();
            UI     = UIManager.Instance;

            //IL
            UnityEngine.GameObject il = new UnityEngine.GameObject();
            DontDestroyOnLoad(il);
            IL = il.AddComponent <ILRuntimeMgr>();

            Localization = new LocalizationMgr();
            Res          = new ResManager();
            LocalCache   = new LocalCacheMgr();
            Logger.Init();
            Event.Init();
            Time.Init();
            Pool.Init();
            Table.Init();
            Scene.Init();
            Debug.Init();
            Sound.Init();
            FSM.Init();
            IL.Init();
            Localization.Init();
            Res.Init();
            LocalCache.Init();
            Debug.Log("GameEntry Init");
        }
Esempio n. 5
0
 // Start is called before the first frame update
 void Start()
 {
     TableDataManager       tbm = TableDataManager.Instance;
     Dictionary <int, aaaa> d   = tbm.GetDT <aaaa>(e_TableType.aaaa);
     List <aaaa>            l   = tbm.GetLT <aaaa>(e_TableType.aaaa);
 }