예제 #1
0
    public void SetUpGather(string field_name, ItemToFieldTable.ItemDetailToFieldPointData point_data)
    {
        Transform transform = GetTransform();

        SetActive(transform, UI.OBJ_FIELD_ICON, true);
        SetLabelText(transform, UI.LBL_FIELD_NAME, field_name);
        SetLabelText(transform, UI.LBL_FIELD_ENEMY_NAME, point_data.pointViewTable.itemDetailText);
        UITexture component = FindCtrl(transform, UI.TEX_FIELD).GetComponent <UITexture>();

        ResourceLoad.LoadGatherPointIconTexture(component, point_data.pointViewTable.iconID);
        SetActive(transform, UI.TEX_FIELD_SUB, true);
        Transform val        = FindCtrl(transform, UI.TEX_FIELD_SUB);
        UITexture component2 = val.GetComponent <UITexture>();

        ResourceLoad.LoadGatherPointIconTexture(component2, point_data.pointViewTable.iconID);
    }