public static UIRebellionNavigation Instantiate(UIRebellionNavigation prefab, Transform parent, CtrlRebellionOrganize.RebellionOrganizeMode iMode) { UIRebellionNavigation uIRebellionNavigation = UnityEngine.Object.Instantiate(prefab); uIRebellionNavigation.transform.parent = parent; uIRebellionNavigation.transform.localPosition = uIRebellionNavigation._vHidePos; uIRebellionNavigation.transform.localScaleOne(); uIRebellionNavigation.SetNavigation(iMode); return(uIRebellionNavigation); }
public static UIRebellionNavigation Instantiate(UIRebellionNavigation prefab, Transform parent, CtrlRebellionOrganize.RebellionOrganizeMode iMode) { UIRebellionNavigation uIRebellionNavigation = Object.Instantiate <UIRebellionNavigation>(prefab); uIRebellionNavigation.get_transform().set_parent(parent); uIRebellionNavigation.get_transform().set_localPosition(uIRebellionNavigation._vHidePos); uIRebellionNavigation.get_transform().localScaleOne(); uIRebellionNavigation.SetNavigation(iMode); return(uIRebellionNavigation); }
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()); }