Example #1
0
    public void OnShow()
    {
        this.Show();
        temp = GameController.Instance.data.botNames;
        scrollView.totalCount = temp.Count;

        nameInput.text    = UIManager.Ins.PlayerName;
        countryInput.text = UIManager.Ins.PlayerCountry;
        countryName       = UIManager.Ins.PlayerCountry;
        index             = temp.FindIndex(s => s.countryCode == UIManager.Ins.PlayerCountry);
        scrollView.ScrollToCell(index, 10000);
        scrollView.RefillCells();
        // selectedIm.SetParent(scrollView);
    }
Example #2
0
 public void OnClickScroll()
 {
     m_ScrollRect_Vertical.ScrollToCell(int.Parse(m_InputField.text));
     //m_ScrollRect_Grid.JumpToCell(int.Parse(m_InputField.text));
 }