public void Execute()
 {
     if (_runner.TryAddCommand(_command))
     {
         var ctx = new RewardWindow.Context("Daily Reward!", "Claim", null);
         _rewardWindow.Create(ctx);
     }
 }
Exemple #2
0
 Task OnFinishLevel(FinishLevelCommand cmd)
 {
     if (cmd.Win)
     {
         var ctx = new RewardWindow.Context("Level completed!", "Finish", _scene.GoToWorld);
         _rewardWindow.Create(ctx);
     }
     else
     {
         _loseWindow.Create(_scene.GoToWorld);
     }
     return(Task.CompletedTask);
 }