public void ReflectOption() { if (this.listInfo.IsNullOrEmpty <ObjectInfo>()) { this.listInfo = ObjectInfoAssist.Find(4); } foreach (OCIRoute ociRoute in this.listInfo.Select <ObjectInfo, OCIRoute>((Func <ObjectInfo, OCIRoute>)(i => Studio.Studio.GetCtrlInfo(i.dicKey) as OCIRoute))) { ociRoute.UpdateLine(); } }
public void Init() { this.dropdown.ClearOptions(); List <ObjectInfo> objectInfoList = ObjectInfoAssist.Find(5); this.listCamera = objectInfoList.Select <ObjectInfo, OCICamera>((Func <ObjectInfo, OCICamera>)(i => Studio.Studio.GetCtrlInfo(i.dicKey) as OCICamera)).ToList <OCICamera>(); this.index = 0; List <TMP_Dropdown.OptionData> optionDataList = !objectInfoList.IsNullOrEmpty <ObjectInfo>() ? objectInfoList.Select <ObjectInfo, TMP_Dropdown.OptionData>((Func <ObjectInfo, TMP_Dropdown.OptionData>)(c => new TMP_Dropdown.OptionData((Studio.Studio.GetCtrlInfo(c.dicKey) as OCICamera).name))).ToList <TMP_Dropdown.OptionData>() : new List <TMP_Dropdown.OptionData>(); optionDataList.Insert(0, new TMP_Dropdown.OptionData("-")); this.dropdown.set_options(optionDataList); ((Selectable)this.dropdown).set_interactable(!objectInfoList.IsNullOrEmpty <ObjectInfo>()); this.SetCamera(Singleton <Studio.Studio> .Instance.ociCamera); }
public void Init() { int childCount = this.nodeRoot.get_childCount(); for (int index = 0; index < childCount; ++index) { Object.Destroy((Object)((Component)this.nodeRoot.GetChild(index)).get_gameObject()); } this.nodeRoot.DetachChildren(); this.scrollRect.set_verticalNormalizedPosition(1f); this.dicNode.Clear(); this.listInfo = ObjectInfoAssist.Find(4); for (int index = 0; index < this.listInfo.Count; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type RouteControl.\u003CInit\u003Ec__AnonStorey0 initCAnonStorey0 = new RouteControl.\u003CInit\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field initCAnonStorey0.\u0024this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objectNode); if (!gameObject.get_activeSelf()) { gameObject.SetActive(true); } gameObject.get_transform().SetParent(this.nodeRoot, false); RouteNode component = (RouteNode)gameObject.GetComponent <RouteNode>(); OIRouteInfo oiRouteInfo = this.listInfo[index] as OIRouteInfo; component.spritePlay = this.spritePlay; component.text = oiRouteInfo.name; // ISSUE: reference to a compiler-generated field initCAnonStorey0.no = index; // ISSUE: method pointer ((UnityEvent)component.buttonSelect.get_onClick()).AddListener(new UnityAction((object)initCAnonStorey0, __methodptr(\u003C\u003Em__0))); // ISSUE: method pointer ((UnityEvent)component.buttonPlay.get_onClick()).AddListener(new UnityAction((object)initCAnonStorey0, __methodptr(\u003C\u003Em__1))); OCIRoute ctrlInfo = Studio.Studio.GetCtrlInfo(this.listInfo[index].dicKey) as OCIRoute; component.state = !ctrlInfo.isEnd ? (!ctrlInfo.isPlay ? RouteNode.State.Stop : RouteNode.State.Play) : RouteNode.State.End; this.dicNode.Add(this.listInfo[index], component); } }