// Initialization + Setup #region public void BuildSheetFromData(AbilityInfoSheet sheet, AbilityDataSO data, AbilityInfoSheet.PivotDirection pivotDirection) { Debug.Log("AbilityInfoSheetController.BuildSheetFromData() called..."); sheet.myData = data; //SetPivotDirection(sheet, pivotDirection); BuildAllTextValueViewsFromData(sheet, data); BuildAbilityTypeIconViewsFromData(sheet, data); BuildAllRequirementPanelsFromData(sheet, data); RefreshAllLayoutGroups(sheet); }
// Modify Pivot + Transform + Positioning #region public void SetPivotDirection(AbilityInfoSheet sheet, AbilityInfoSheet.PivotDirection pivotDirection) { Debug.Log("AbilityInfoSheetController.SetPivotDirection() called..."); if (pivotDirection == AbilityInfoSheet.PivotDirection.Downwards) { SetDownwardsPivot(sheet); } else if (pivotDirection == AbilityInfoSheet.PivotDirection.Upwards) { SetUpwardsPivot(sheet); } }