/* Method to generate a new pattern. Uses the method from * PatternGenerator.cs */ public void InitializePattern(int length) { pattern = PatternGenerator.GeneratePattern(length); displayEvent.Invoke(pattern, length); patternLength = length; playerMatchPattern = false; PuzzleMatcher.instance.ClearPlayerArrays(); StartCoroutine(WaitForPatternMatch()); }
protected virtual void DisplayMe() { DisplayEvent?.Invoke(SurnameList); }