// Use this for initialization void Start() { uiScript = uiManager.GetComponent<CustomizationControl>(); if(onSprite == null || offSprite == null) { //Debug.Log("Missing Sprite"); } buttons = gameObject.GetComponentsInChildren<Button>(); if (buttons != null) { //Debug.Log("Found " + buttons.Length + " buttons "); }else { //Debug.Log("NO BUTTONS FOUND!!!!"); } }
// Use this for initialization void Start() { uiScript = uiManager.GetComponent<CustomizationControl>(); ssScript = ssObject.GetComponent<selectSettings>(); }