public void HighlightActivity(HighlightScript SelectedHighlight) { HighlightScript CurrHighlight; while (AllHighlights.Count > 0) { CurrHighlight = AllHighlights.Dequeue(); if (CurrHighlight == SelectedHighlight) { CurrHighlight.SelectedHighlight(); } else { CurrHighlight.DidntSelectHighlight(); } } }
public void AddHighlightToList(HighlightScript HighlightToAdd) { AllHighlights.Enqueue(HighlightToAdd); }
public void Highlight() { SpawnedHighlight = Instantiate(TileHighlight, transform.position, transform.rotation, Manager.GetCurrentLevelTransform()); Manager.AddHighlightToList(SpawnedHighlight); }