Beispiel #1
0
 /*******************************************************************/
 public void InitializeCampaigns()
 {
     foreach (Campaign campaign in campaignRepository.Campaigns)
     {
         CampaignView    campaignView = campaignsManager.GetCampaign(campaign.Id);
         CampaignStateSO state        = campaignsManager.GetState(campaign.State);
         campaignView.SetState(state);
     }
 }
Beispiel #2
0
 public void SetState(CampaignStateSO campaignState)
 {
     currentState = campaignState;
     campaignState.ExecuteState(this);
 }