// 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(); }
private void Awake() { sunRaysScript = FindObjectOfType <SunRays>(); }