void Update() { if (!sequenceMatch) { sequenceMatch = CheckSequenceMatch(); } if (sequenceMatch) { Debug.Log("Match!"); if (OnSequenceMatch != null) { OnSequenceMatch(); } reader.ClearSequence(); sequenceMatch = false; } }
void Update() { if (!sequenceMatch) { sequenceMatch = CheckSequenceMatch(); } if (sequenceMatch) { Debug.Log("Match!"); if (OnSequenceMatch != null) { OnSequenceMatch(); } reader.ClearSequence(); sequenceMatch = false; } }