public int button_index; //the index of the button (about = 0, resilience = 1, etc.) private void Start() { info_Panel_Change = GameObject.Find("Canvas").GetComponent <info_panel_change>(); all_Panels = transform.parent.GetComponent <current_city_infos>(); }
private void Start() { info_Panel_Change = GameObject.Find("Canvas").GetComponent <info_panel_change>(); infoDisplay = GameObject.Find("info_image_display").GetComponent <Image>(); }