protected override void UpdateListeners(bool toAdd) { if (toAdd) { CardOpenedSignal.AddListener(CardOpened); } else { CardOpenedSignal.RemoveListener(CardOpened); } Field.dispatcher.UpdateListener(toAdd, Field.FieldEventType.CardSequenceFound, OnCardSequenceFound); Field.dispatcher.UpdateListener(toAdd, Field.FieldEventType.CardSequenceLoose, OnCardSequenceLoose); Field.dispatcher.UpdateListener(toAdd, Field.FieldEventType.FieldPassed, OnFieldPassed); Field.dispatcher.UpdateListener(toAdd, Field.FieldEventType.FirstCardShowFinished, OnFirstCardShowFinished); }
private void OnCardOpened() { CardOpenedSignal.Dispatch(Card); }