public string BMText() { string r = ""; switch (business_model) { case Business_model.freemium: r = "Game uses " + iap.ToString() + " iap/adventisement"; break; case Business_model.premium: business_model = Business_model.premium; r = "Game sells for " + price.ToString() + "/u"; break; case Business_model.f2p: r = "Game is free to play"; break; } return(r); }
public Game(string _name, string _iap, string _Business_model, string _scope, int _price) { switch (_scope.ToLower()) { case "small": scope = 1; break; case "medium": scope = 2; break; case "a": scope = 4; break; case "aa": scope = 8; break; case "aaa": scope = 16; break; } switch (_iap.ToLower()) { case "low": iap = IAP.low; break; case "medium": iap = IAP.medium; break; case "heavy": iap = IAP.heavy; break; } Debug.Log(_Business_model); switch (_Business_model.ToLower()) { case "freemium": business_model = Business_model.freemium; break; case "premium": business_model = Business_model.premium; break; case "f2p": business_model = Business_model.f2p; break; } name = _name; //iap = _iap; progress = 0; popularity = Random.Range(0f, 2.5f + (Instance.games.Count / 100) + Instance.stats.marketing) + (Instance.stats.fans + 1) / 1250; state = State.programming; scope = 1; codeQuality = graphicQuality = soundQuality = 1; price = _price; }