Пример #1
0
    public void HighlightActivity(HighlightScript SelectedHighlight)
    {
        HighlightScript CurrHighlight;

        while (AllHighlights.Count > 0)
        {
            CurrHighlight = AllHighlights.Dequeue();
            if (CurrHighlight == SelectedHighlight)
            {
                CurrHighlight.SelectedHighlight();
            }
            else
            {
                CurrHighlight.DidntSelectHighlight();
            }
        }
    }
Пример #2
0
 public void AddHighlightToList(HighlightScript HighlightToAdd)
 {
     AllHighlights.Enqueue(HighlightToAdd);
 }
Пример #3
0
 public void Highlight()
 {
     SpawnedHighlight = Instantiate(TileHighlight, transform.position, transform.rotation, Manager.GetCurrentLevelTransform());
     Manager.AddHighlightToList(SpawnedHighlight);
 }