public static UIRebellionParticipatingFleetSelector Instantiate(UIRebellionParticipatingFleetSelector prefab, Transform parent)
        {
            UIRebellionParticipatingFleetSelector uIRebellionParticipatingFleetSelector = UnityEngine.Object.Instantiate(prefab);

            uIRebellionParticipatingFleetSelector.transform.parent = parent;
            uIRebellionParticipatingFleetSelector.transform.localScaleOne();
            uIRebellionParticipatingFleetSelector.transform.localPosition = uIRebellionParticipatingFleetSelector._vOriginPos;
            uIRebellionParticipatingFleetSelector.Setup();
            return(uIRebellionParticipatingFleetSelector);
        }
示例#2
0
        public static UIRebellionParticipatingFleetSelector Instantiate(UIRebellionParticipatingFleetSelector prefab, Transform parent)
        {
            UIRebellionParticipatingFleetSelector uIRebellionParticipatingFleetSelector = Object.Instantiate <UIRebellionParticipatingFleetSelector>(prefab);

            uIRebellionParticipatingFleetSelector.get_transform().set_parent(parent);
            uIRebellionParticipatingFleetSelector.get_transform().localScaleOne();
            uIRebellionParticipatingFleetSelector.get_transform().set_localPosition(uIRebellionParticipatingFleetSelector._vOriginPos);
            uIRebellionParticipatingFleetSelector.Setup();
            return(uIRebellionParticipatingFleetSelector);
        }
示例#3
0
        private IEnumerator InstantiateObjects()
        {
            _uiNavigation = UIRebellionNavigation.Instantiate(((Component)_prefabUINavigation).GetComponent <UIRebellionNavigation>(), base.transform, _iMode);
            yield return(null);

            _uiFleetSelector = UIRebellionFleetSelector.Instantiate(((Component)_prefabFleetSelector).GetComponent <UIRebellionFleetSelector>(), base.transform);
            yield return(null);

            _uiParticipatingFleetSelector = UIRebellionParticipatingFleetSelector.Instantiate(((Component)_prefabParticipatingFleetSelector).GetComponent <UIRebellionParticipatingFleetSelector>(), base.transform);
            yield return(StartCoroutine(_uiParticipatingFleetSelector.InstantiateObjects()));

            yield return(null);

            _uiHeader = UIRebellionHeader.Instantiate(((Component)_prefabHeader).GetComponent <UIRebellionHeader>(), base.transform);
            yield return(Observable.NextFrame(FrameCountType.EndOfFrame).StartAsCoroutine());
        }