Example #1
0
    public void populateDetailsPanelByCustomer(Cult cult)
    {
        Debug.Log("" + cult.GetWorshipMethod());

        currentCustomer        = cult;
        CultWorshipMethod.text = "" + cult.GetWorshipMethod();
    }
    public void populateDetailsPanel(Cult cult)
    {
        CurrentSelectedCult = cult;

        customerName.text           = "Leader: " + cult.GetLeaderName();
        customerSize.text           = "Members: " + cult.GetSize();
        preferredWorshipMethod.text = "Worship Method: " + cult.GetWorshipMethod();
    }
Example #3
0
    public void populateDetailsPanel(Cult cult)
    {
        CurrentSelectedCult = cult;

        DeityName.text = cult.getDeityName();

        LeaderName.text    = cult.GetLeaderName();
        CultSize.text      = "" + cult.GetSize();
        WorshipMethod.text = " " + cult.GetWorshipMethod();

        float faith = cult.GetFaith();

        FaithSlider.value = faith;
    }
Example #4
0
    public float CalculateWorshipLevel()
    {
        if (currentCustomer == null)
        {
            return(0f);
        }

        if (currentCustomer.GetWorshipMethod() == currentDeity.GetWorshipMethod())
        {
            //   Debug.Log(currentDeity.GetWorshipReceived() + (((float)currentCustomer.GetSize()) * currentCustomer.GetFaith()));
            return(currentDeity.GetWorshipReceived() + (((float)currentCustomer.GetSize()) * currentCustomer.GetFaith()));
        }
        else
        {
            return(currentDeity.GetWorshipReceived() + (((float)currentCustomer.GetSize()) * currentCustomer.GetFaith() * 0.7f));
        }
    }