예제 #1
0
    internal void SetAudience(AudienceInfo info)
    {
        var company = Flagship;

        var features = Products.GetAllFeaturesForProduct();

        SetItems(features);
    }
예제 #2
0
    //public Hint AudienceHint;

    public void SetEntity(AudienceInfo info, long index, int count)
    {
        var companies = Companies.GetCompetitorsOf(Flagship, Q, true);

        var max   = 2.75f;
        var scale = Mathf.Clamp(max / (count - index), 1f, max);

        transform.localScale = new Vector3(scale, scale, 1);

        SegmentName.text = info.Name;

        CompaniesListView.SetCompanies(companies.ToArray(), info.ID);
    }
예제 #3
0
    public void SetEntity(AudienceInfo audience, GameEntity product, int setLoyalty = 0)
    {
        base.ViewRender();
        return;

        /*
         * //var product = Flagship;
         *
         * segmentId = audience.ID;
         * Audience = audience;
         *
         * var links = GetComponent<ProductUpgradeLinks>();
         * bool isMainAudience = Marketing.IsTargetAudience(product, segmentId);
         *
         * Draw(TargetAudience, isMainAudience);
         *
         * var loyalty = (int)Marketing.GetSegmentLoyalty(product, segmentId); // Random.Range(-5, 15);
         *
         * long clients = Marketing.GetUsers(product, segmentId);
         *
         * bool isNewAudience = clients == 0;
         * bool isLoyalAudience = loyalty >= 0;
         *
         * if (setLoyalty == 1)
         *  isLoyalAudience = true;
         * if (setLoyalty == -1)
         *  isLoyalAudience = false;
         *
         *
         * if (links != null)
         * {
         *  if (isNewAudience)
         *      links.Background.color = Visuals.GetColorFromString(Colors.COLOR_NEUTRAL);
         *  else
         *      links.Background.color = Visuals.GetColorPositiveOrNegative(isLoyalAudience);
         *
         *
         *  if (setLoyalty == 1 || setLoyalty == -1)
         *      links.Background.color = Visuals.GetColorPositiveOrNegative(isLoyalAudience);
         * }
         *
         * RenderAudienceHint(audience, isNewAudience, product, clients, loyalty);
         *
         * AudienceImage.texture = Resources.Load<Texture2D>($"Audiences/{audience.Icon}");
         *
         * HideLoyaltyChanges();
         */
    }
예제 #4
0
 public static long GetAudienceWorth(AudienceInfo audienceInfo)
 {
     return(audienceInfo.Size);
 }