Пример #1
0
        public void RefreshTokens(Investigator investigator)
        {
            InvestigatorCardView investigatorView = cardsManager.GetInvestigatorCard(investigator.Id);

            investigatorView.UpdatePhysicTrauma(investigator.PhysicTrauma);
            investigatorView.UpdateMentalTrauma(investigator.MentalTrauma);
            investigatorView.UpdateXp(investigator.Xp);
        }
Пример #2
0
 public void InvestigatorStateResolve()
 {
     foreach (Investigator investigator in investigatorRepository.Investigators)
     {
         InvestigatorCardView investigatorView = cardsManager.GetInvestigatorCard(investigator.Id);
         bool hasNoState = investigator.State == InvestigatorState.None;
         investigatorView.UpdatePhysicTrauma(hasNoState ? investigator.PhysicTrauma : 0);
         investigatorView.UpdateMentalTrauma(hasNoState ? investigator.MentalTrauma : 0);
         investigatorView.UpdateXp(hasNoState ? investigator.Xp : 0);
         investigatorView.ChangeState(investigator.State);
     }
 }