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