public void UpdateData()
        {
            var spriteScript = SdbManager.GetSdbOrNull <SpriteScriptable>();



            // TODO: 보너스 데이터에 따라서 IconTextView
//            iconTextView.UpdateData();
        }
Exemple #2
0
        public void SdbManager_LoadTestSdb()
        {
            SdbManager.InitSdbManager("MP_Test_Sdb");

            var testSdb = SdbManager.GetSdbOrNull <TestSdb>();

            Assert.IsNotNull(testSdb);

            Debug.Log($"TestSdb's testNum is {testSdb.testNum}");
        }
        private void CreateIconTexts(UserStatusType[] statusTypes, string[] textValues)
        {
            var spriteScriptable = SdbManager.GetSdbOrNull <SpriteScriptable>();

            for (var i = 0; i < statusTypes.Length; i++)
            {
                var status   = statusTypes[i];
                var iconText = Instantiate(iconTextPrefab, transform);

                iconText.UpdateData(spriteScriptable.statusSpriteDic[status], textValues[i]);
            }
        }
        public void UpdateUserPictures(int userIndex)
        {
            var spriteScript = SdbManager.GetSdbOrNull <SpriteScriptable>().characterAndShipSprites;

            userPortrait.sprite = spriteScript[userIndex];
        }
        public void UpdateShipPic(int shipIndex)
        {
            var spriteScript = SdbManager.GetSdbOrNull <SpriteScriptable>().characterAndShipSprites;

            userShipImage.sprite = spriteScript[shipIndex];
        }