19 lines
417 B
C#
19 lines
417 B
C#
using ParticleShaders;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class GetName : MonoBehaviour
|
|
{
|
|
public int m_Index;
|
|
|
|
private void Start()
|
|
{
|
|
Text component = GetComponent<Text>();
|
|
ParticleShaders.ExamplesController component2 = base.transform.parent.parent.GetComponent<ParticleShaders.ExamplesController>();
|
|
if ((bool)component2)
|
|
{
|
|
component.text = component2.m_Examples[m_Index].Name;
|
|
}
|
|
}
|
|
}
|