public override void LateInitialize() { base.LateInitialize(); //コンポーネントの取得 polyLine = unitEditor.polyLine; database = unitEditor.database; maker = (UnitEditorPolyLineMaker)polyLine.GetState(LINE_COM); //UIコールバックの設定 UnitEditorUIMainmenu mainmenu = (UnitEditorUIMainmenu)unitEditor.ui.sidemenu.GetUIComponent(MENU); mainmenu.makeBtn.onClick.AddListener(OnMakeBtnClicked); //ColorEditFieldの取得 colorEditField = unitEditor.ui.colorEditField; }
/// <summary> /// 遅延初期化 /// </summary> public override void LateInitialize() { base.LateInitialize(); //selectParts selectParts = (UnitEditorSelectParts)owner; //コンポーネントの取得 polyLine = unitEditor.polyLine; database = unitEditor.database; adjuster = (UnitEditorPolyLineAdjuster)polyLine.GetState(LINE_COM); //UIコールバックの設定 UnitEditorUIPartsMenu menu = (UnitEditorUIPartsMenu)unitEditor.ui.sidemenu.GetUIComponent(MENU); menu.adjustBtn.onClick.AddListener(OnAdjustButtonClicked); }