Exemple #1
0
    void OnTriggerEnter(Collider other)
    {
        if (ShowBarChart == false)
        {
            ShowBarChart = true;
            myBarchart.SetActive(true);
        }

        Vuforia.RetailItemScript productinfo = other.gameObject.transform.parent.GetComponent <Vuforia.RetailItemScript>();
        if (productinfo.GetProductName() == "")
        {
            productinfo.filtProd();
            waitandaddrequest(other);
        }
        else
        {
            addDataToBar(productinfo.GetProductName(), productinfo.GetSales());
        }
    }