private void OnCharIsFound(TargetBoard targetBoard) { _foundCharCount++; if (_foundCharCount == TargetBoardField.Word.Length) { _foundCharCount = 0; StagePassedSignal.Dispatch(); } }
private void CharIsFound() { ResetDoingNothingCoroutine(); StagePassedSignal.Dispatch(); MainView.DespawnLastGroup(); ChangeCharacterEmotionSignal.Dispatch(CharacterEmotionType.Delight); }
private void OnNewItemDetected(int scrollIndex, string syllable) { syllable = syllable.ToUpper(); if (_scrollSyllableDict.ContainsKey(scrollIndex)) { _scrollSyllableDict[scrollIndex] = syllable; } else { _scrollSyllableDict.Add(scrollIndex, syllable); } var isStagePassed = true; for (var i = 0; i < _syllableList.Count; i++) { if (!_scrollSyllableDict.ContainsKey(i)) { ChangeCharacterEmotionSignal.Dispatch(CharacterEmotionType.Denial); return; } isStagePassed = isStagePassed && _syllableList[i].Equals(_scrollSyllableDict[i]); } if (isStagePassed) { StagePassedSignal.Dispatch(); ChangeCharacterEmotionSignal.Dispatch(CharacterEmotionType.Delight); } else { ChangeCharacterEmotionSignal.Dispatch(CharacterEmotionType.Denial); } }
protected override void UpdateListeners(bool toAdd) { base.UpdateListeners(toAdd); FindingExpression.dispatcher.UpdateListener(toAdd, FindingExpression.EventType.ExpressionFound, () => StagePassedSignal.Dispatch()); }
private void OnFieldPassed() { StagePassedSignal.Dispatch(); ChangeCharacterEmotionSignal.Dispatch(CharacterEmotionType.Delight); }