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