Example #1
0
        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);
        }
Example #2
0
 private void OnCardOpened()
 {
     CardOpenedSignal.Dispatch(Card);
 }