private void ShowBulbWithTime(BulbComponent component, InputWordType word, float time) { component.CurrentImage.gameObject.SetActive(true); component.CurrentImage.sprite = component.BulbSprites[(int)word]; Observable.Timer(TimeSpan.FromMilliseconds(time)) .Subscribe(_ => component.CurrentImage.gameObject.SetActive(false)) .AddTo(component); }
private void NotifyWordCompleted(InputWordType inputWordType) { MessageBroker.Default.Publish(new EvtInputWordCompleted { InputWord = inputWordType }); }
private void ShowBulbWithAttack(BulbComponent component, InputWordType word) { ShowBulbWithTime(component, word, component.Lifetime); }