コード例 #1
0
 private void OnWorkCompleted(SecretaryInfo otherSecretary, int circles)
 {
     if (isInitialized)
     {
         if (otherSecretary.GeneratorId == Secretary.GeneratorId)
         {
             StartCoroutine(CreateEffectImpl(circles));
         }
     }
 }
コード例 #2
0
 public void Setup(SecretaryInfo secretary)
 {
     rectTransform = GetComponent <RectTransform>();
     animator      = GetComponent <Animator>();
     rectTransform.anchoredPosition = rightPosition;
     countText.text = string.Empty;
     Secretary      = secretary;
     isInitialized  = true;
     UpdateState(Secretary.State);
 }
コード例 #3
0
ファイル: ReportsView.cs プロジェクト: OlegGelezcov/boscs
 private void OnSecretaryCountChanged(int oldCount, int newCount, SecretaryInfo reportInfo)
 {
     if (manager != null)
     {
         if (manager.Id == reportInfo.GeneratorId)
         {
             UpdateSecretaryCountText();
             UpdateSecretaryPriceText();
             CreateConstSecretaryAnimObject();
         }
     }
 }
コード例 #4
0
 private void OnSecretaryStateChanged(SecretaryState oldState, SecretaryState newState, SecretaryInfo secretary)
 {
     if (isInitialized)
     {
         if ((Secretary != null) && (Secretary.GeneratorId == secretary.GeneratorId))
         {
             UpdateState(newState);
         }
     }
 }