示例#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 BuildInvestigatorCards()
 {
     foreach (string investigatorId in InvestigatorCards)
     {
         object[]             args     = new object[] { investigatorId };
         InvestigatorCardView cardView = diContainer.InstantiatePrefabForComponent <InvestigatorCardView>(investigatorPrefab, investigatorZone, args);
         SetCard(cardView);
     }
 }
示例#3
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);
     }
 }