public override void Draw(int aID) { var workingActiveArea = Target as ActiveAreaDataControl; actionsList.ActionsListDataControl = workingActiveArea.getActionsList(); actionsList.DoList(300, true); }
public override void Draw(int aID) { var isInspector = Target != null; var workingItem = isInspector ? Target as ItemDataControl : Controller.Instance.SelectedChapterDataControl.getItemsList().getItems()[ GameRources.GetInstance().selectedItemIndex]; if (isInspector) { m_Rect.height = 300; } actionsList.ActionsListDataControl = workingItem.getActionsList(); actionsList.DoList(m_Rect.height - 60f, isInspector); }