You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 rivejä
706 B

  1. using System;
  2. using SUISS.Core;
  3. public class DailyRewardPopupState : PopupBaseState
  4. {
  5. public override void Enter(State oldState)
  6. {
  7. base.Enter(oldState);
  8. ((DailyRewardPopupView)this.View).Init(this._currencySourceObject);
  9. }
  10. public override void Leave(State newState)
  11. {
  12. base.Leave(newState);
  13. ((DailyRewardPopupView)this.View).Deinit();
  14. }
  15. public void ShowStreak(DailyRewardsManager.Streak streak, int dayIndex)
  16. {
  17. ((DailyRewardPopupView)this.View).UpdateView(streak, dayIndex);
  18. }
  19. public void Collect()
  20. {
  21. SingletonMonobehaviour<DailyRewardsManager>.Instance.Collect(this._currencySourceObject);
  22. }
  23. private object _currencySourceObject = new object();
  24. }