예제 #1
0
 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();
 }
예제 #2
0
        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();
        }
예제 #3
0
 public void RemoveIndicator(ScoreTableRowIndicator indicatorPrefab)
 {
     Destroy(this.indicators[indicatorPrefab].gameObject);
     this.indicators.Remove(indicatorPrefab);
 }
예제 #4
0
 public void AddHeader(ScoreTableRowIndicator headerPrefab)
 {
     Instantiate <ScoreTableRowIndicator>(headerPrefab).transform.SetParent(this.scoreHeaderContainer, false);
 }