Beispiel #1
0
    // 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);
    }
Beispiel #2
0
    // 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);
        }
    }