コード例 #1
0
    private void Awake()
    {
        string mouthsData = Resources.Load <TextAsset>("MouthsData").text;
        StickerCustomizationPopupModel stickerCustomizationPopupModel = JsonUtility.FromJson <StickerCustomizationPopupModel>(mouthsData);

        SetViewModel(new StickerCustomizationPopupViewModel(stickerCustomizationPopupModel, new CachedResourcesLoader(), stickerCustomizationPopupModel.GetDataWithIndex(0).Id));
    }
コード例 #2
0
 public StickerCustomizationPopupViewModel(StickerCustomizationPopupModel stickerCustomizationPopupModel, CachedResourcesLoader cachedResourcesLoader, int selectedMouthId)
 {
     selectedMouthModel = new BehaviorSubject <MouthCellModel>(stickerCustomizationPopupModel.GetDataWithIndex(selectedMouthId));
     this.stickerCustomizationPopupModel = stickerCustomizationPopupModel;
     this.cachedResourcesLoader          = cachedResourcesLoader;
 }