コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     plane.SetActive(false);
     Debug.Log("Sun: " + sun.gameObject.name);
     sunRaysScript = sun.GetComponent <SunRays>();
     Debug.Log("Sun Rays Script: " + sunRaysScript.LightOrigin.ToString());
     sticks = sunRaysScript.sticks;
     Debug.Log("Sticks Arr length: " + sticks.Length);
     PopulateSitckPlacementArr();
 }
コード例 #2
0
 private void Awake()
 {
     sunRaysScript = FindObjectOfType <SunRays>();
 }