void OnRectTransformDimensionsChange() { centerPanel = GameObject.FindObjectOfType <CenterPanelScript> (); UpdateLayout(); }
// Use this for initialization void Start() { centerPanel = GameObject.FindObjectOfType <CenterPanelScript> (); UpdateLayout(); }