Example #1
0
 private void OnWorkCompleted(SecretaryInfo otherSecretary, int circles)
 {
     if (isInitialized)
     {
         if (otherSecretary.GeneratorId == Secretary.GeneratorId)
         {
             StartCoroutine(CreateEffectImpl(circles));
         }
     }
 }
Example #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);
 }
Example #3
0
 private void OnSecretaryCountChanged(int oldCount, int newCount, SecretaryInfo reportInfo)
 {
     if (manager != null)
     {
         if (manager.Id == reportInfo.GeneratorId)
         {
             UpdateSecretaryCountText();
             UpdateSecretaryPriceText();
             CreateConstSecretaryAnimObject();
         }
     }
 }
Example #4
0
 private void OnSecretaryStateChanged(SecretaryState oldState, SecretaryState newState, SecretaryInfo secretary)
 {
     if (isInitialized)
     {
         if ((Secretary != null) && (Secretary.GeneratorId == secretary.GeneratorId))
         {
             UpdateState(newState);
         }
     }
 }