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(); }
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; }
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)); } }