Skip to content

Commit

Permalink
Add GetSubviews method usage to OnSetupInternal
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Selivanov committed Dec 15, 2024
1 parent 9f9306a commit ee804dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using CCG.MVVM.Card.ViewModel;
using CCG.MVVM.CoolPopup.Payload;
using CCG.MVVM.MainScreen.Subviews.TextView;
using CCG.MVVM.StatsChanger;
using CCG.Services.Game;
using UnityEngine;
using UnityMVVM.ViewManager;
Expand Down Expand Up @@ -54,6 +55,7 @@ private void OnCardAdded(ICardModel card)
protected override void OnSetupInternal()
{
CreateSubView(ViewNames.TextView, _cardsContainer, new TextViewPayload("SOME_TEXT"));
GetSubview<StatsChangerViewModel>().ChangeCardStat();
}

private void IntiGame()
Expand Down

0 comments on commit ee804dc

Please sign in to comment.