private GodPanel CreateGodPanel()
        {
            GodPanel godPanel = Object.Instantiate <GodPanel>(m_godPanelPrefab);

            godPanel.get_gameObject().SetActive(true);
            return(godPanel);
        }
        public void Init()
        {
            List <Tuple <GodDefinition, GodFakeData> > displayedGods = GetDisplayedGods();
            int count = displayedGods.Count;

            for (int i = 0; i < m_fakeData.godNbElementLockedBefore; i++)
            {
                GodPanel godPanel = CreateGodPanel();
                godPanel.Set(null, null);
                m_godList.Add(godPanel);
            }
            for (int j = 0; j < count; j++)
            {
                Tuple <GodDefinition, GodFakeData> tuple = displayedGods[j];
                if (!tuple.Item2.locked)
                {
                    GodPanel godPanel2 = CreateGodPanel();
                    godPanel2.Set(tuple.Item1, tuple.Item2);
                    m_godList.Add(godPanel2);
                }
            }
            int num = 0;

            for (int k = 0; k < count; k++)
            {
                if (displayedGods[k].Item2.locked)
                {
                    GodPanel godPanel3 = CreateGodPanel();
                    godPanel3.Set(null, null);
                    m_godList.Add(godPanel3);
                    num++;
                }
            }
            for (int l = 0; l < m_fakeData.godNbElementLockedAfter; l++)
            {
                GodPanel godPanel4 = CreateGodPanel();
                godPanel4.Set(null, null);
                m_godList.Add(godPanel4);
                num++;
            }
            m_godList.lockedLeft  = m_fakeData.godNbElementLockedBefore;
            m_godList.lockedright = num;
            m_godList.SetSelectedIndex(GetSelectedIndex(displayedGods), tween: false, selectCallback: false);
            m_selectButton.set_interactable(displayedGods.Count > 0);
        }