Exemplo n.º 1
0
    private void CalculatePrice(BussinessModelType bussinessModelType)
    {
        product.SetBussinessModelType(bussinessModelType);

        if (bussinessModelType == BussinessModelType.Digital_Download)
        {
            int temp = (product.GetAllComponentDataList().Count * 2) / 3 * (product.GetAllComponentDataLevel() / 2);
            priceDemo.text = temp + "$ / Unit";
        }
        else if (bussinessModelType == BussinessModelType.Freemium)
        {
            int temp = (product.GetAllComponentDataList().Count * 2) / 3 * product.GetAllComponentDataLevel();
            priceDemo.text = temp + "$ / Premium Unit";
        }
        else if (bussinessModelType == BussinessModelType.Subscription)
        {
            priceDemo.text = "10$ / Subscription";
        }
        else if (bussinessModelType == BussinessModelType.Advertising)
        {
            priceDemo.text = "0.01$ to 0.5$ / Unit";
        }
    }
Exemplo n.º 2
0
 public void SetBussinessModelType(BussinessModelType bussinessModelType)
 {
     this.bussinessModel = bussinessModelType;
 }