public void CostumeListScrollToTarget(NkSoldierInfo solInfo) { if (solInfo == null) { return; } NewListBox costumeListBox = this._costumeRoomDlg._variables._costumeListBox; if (costumeListBox == null) { return; } float costumeMoveTargetPos = this.GetCostumeMoveTargetPos(costumeListBox, solInfo); if (costumeMoveTargetPos < 0f) { return; } costumeListBox.ScrollListTo_Internal(costumeMoveTargetPos); }
public void MoveListToTarget(NkSoldierInfo selectedMySolInfo) { if (selectedMySolInfo == null) { return; } NewListBox mySolKindListBox = this._costumeRoomDlg._variables._mySolKindListBox; if (mySolKindListBox == null) { return; } float myCharMoveTargetPos = this.GetMyCharMoveTargetPos(mySolKindListBox, selectedMySolInfo); if (myCharMoveTargetPos < 0f) { return; } mySolKindListBox.ScrollListTo_Internal(myCharMoveTargetPos); }