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