using sam;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HistogramImplementationSelector : MonoBehaviour
{
public float heightFraction = 0.35f;
public Material fastPathMaterial;
public Material fallbackMaterial;
ProductData pdata;
void Awake()
{
if (IsFastPathSupported())
{
Debug.Log($"Adding ProductVariableHistorgram Component");
GetComponent().material = fastPathMaterial;
var c = gameObject.AddComponent();
c.heightFraction = heightFraction;
}
else
{
Debug.Log($"Adding ProductVariableHistorgramFallback Component");
GetComponent().material = fallbackMaterial;
var c = gameObject.AddComponent();
c.heightFraction = heightFraction;
}
}
public void OnProductSelected(ProductData data)
{
Debug.Log($"OnProductSelected called");
pdata = data;
}
bool IsFastPathSupported()
{
return false;
}
}