public void AddIndicators(List <ScoreTableRowIndicator> indicatorsList)
 {
     foreach (ScoreTableRowIndicator indicator in indicatorsList)
     {
         ScoreTableRowIndicator indicator2 = Instantiate <ScoreTableRowIndicator>(indicator);
         this.indicators.Add(indicator, indicator2);
         indicator2.transform.SetParent(this.indicatorsContainer, false);
     }
     this.Sort();
 }
        public void AddIndicator(ScoreTableRowIndicator indicatorPrefab)
        {
            ScoreTableRowIndicator indicator = Instantiate <ScoreTableRowIndicator>(indicatorPrefab);

            this.indicators.Add(indicatorPrefab, indicator);
            indicator.transform.SetParent(this.indicatorsContainer, false);
            EntityBehaviour component = indicator.GetComponent <EntityBehaviour>();

            if (component != null)
            {
                component.BuildEntity(base.GetComponent <EntityBehaviour>().Entity);
            }
            this.Sort();
        }
 public void RemoveIndicator(ScoreTableRowIndicator indicatorPrefab)
 {
     Destroy(this.indicators[indicatorPrefab].gameObject);
     this.indicators.Remove(indicatorPrefab);
 }
Exemple #4
0
 public void AddHeader(ScoreTableRowIndicator headerPrefab)
 {
     Instantiate <ScoreTableRowIndicator>(headerPrefab).transform.SetParent(this.scoreHeaderContainer, false);
 }