Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     rectTransform               = contentText.GetComponent <RectTransform>();
     planetSwitchScript          = gameObject.AddComponent <PlanetSwitch>();
     planetSwitchScript.SunLight = GameObject.Find("SunLight").GetComponent <Light>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     rectTransform = contentText.GetComponent<RectTransform>();
     planetSwitchScript = gameObject.AddComponent<PlanetSwitch>();
     planetSwitchScript.SunLight = GameObject.Find("SunLight").GetComponent<Light>();
 }