示例#1
0
        private CharacterPanel CreateCharacterPanel()
        {
            CharacterPanel characterPanel = Object.Instantiate <CharacterPanel>(m_characterPrefab);

            characterPanel.get_gameObject().SetActive(true);
            return(characterPanel);
        }
示例#2
0
        private unsafe void Start()
        {
            //IL_0011: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_0049: Unknown result type (might be due to invalid IL or missing references)
            //IL_0053: Expected O, but got Unknown
            m_characterList.elementWidth = (int)((IntPtr)(void *)m_characterPrefab.get_transform().get_sizeDelta()).x;
            m_characterPrefab.get_gameObject().SetActive(false);
            m_selectButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            CharacterPanelList characterList = m_characterList;

            characterList.onElementSelected = (Action <int>)Delegate.Combine(characterList.onElementSelected, (Action <int>) delegate
            {
                UpdateInactivityTime();
            });
        }