Beispiel #1
0
    void AddHeader()
    {
        var text = Instantiate(header);

        text.position = transform.position + offset;
        text.GetComponentInChildren <GraphHeader>().label = statistic.Translate();
    }
Beispiel #2
0
    public void Start()
    {
        var header = Instantiate(textPrefab, transform.position, Quaternion.identity);

        header.GetComponentInChildren <GraphHeader>().label = floatStatistic.Translate();
        textPrefab = header;
    }