示例#1
0
        private void BindCard()
        {
            //加载图片
            string cardFile = "file://" + FBConsts.CardsDir + "\\" + f_card.CardImage;

            StartCoroutine(FBTools.LoadImage(cardFile, imgCard));

            //是否锁定
            imgLock.gameObject.SetActive(f_card.IsLocked);
        }
示例#2
0
        //初始化
        public void OnInitialized()
        {
            //构建Level集合
            List <FileInfo> files = FBTools.GetLevelFiles();

            for (int i = 0; i < files.Count; i++)
            {
                FBLevel level = new FBLevel();
                FBTools.FillLevel(files[i].FullName, ref level);
                f_levels.Add(level);
            }

            //读取游戏进度
            f_gameProgressIndex = FBSaver.GetProgress();
        }