public void populateDetailsPanel(Cult cult)
    {
        CurrentSelectedCult = cult;

        customerName.text           = "Leader: " + cult.GetLeaderName();
        customerSize.text           = "Members: " + cult.GetSize();
        preferredWorshipMethod.text = "Worship Method: " + cult.GetWorshipMethod();
    }
Exemplo n.º 2
0
    public void Setup(Cult c, CustomerScrollList scrollList)
    {
        cult = c;
        customerName.text = cult.GetLeaderName();
        //       preferredWorshipMethod.text = c.GetWorshipMethod();
        //       cultSize.text = cult.GetSize().ToString();

        customerScrollList = scrollList;
        detailsPanel       = GameObject.Find("Customer Details Panel");
        button.onClick.AddListener(delegate { fillPanel(); });
    }
Exemplo n.º 3
0
    public void addCult(Cult c)
    {
        Debug.Log("Status #4: " + c.GetLeaderName());
        if (worshippingCults == null)
        {
            worshippingCults = new List <Cult>();
        }
        worshippingCults.Add(c);

        CalculateWorshipReceived();
    }
Exemplo n.º 4
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;
    }
Exemplo n.º 5
0
    public void AddCult(Deity deity, Cult cult)
    {
        Debug.Log("cult is added to OM");
        Debug.Log("Status #3: " + cult.GetLeaderName());
        Cults.Add(cult);
        deity.addCult(cult);
        Customers.Remove(cult);

        UIManager.OnCustomerButton();

        for (int i = 0; i < Deities.Count; i++)
        {
            Debug.Log("Number of worshippers for " + Deities[i].GetName() + ": " + Deities[i].GetWorshippingCults().Count);
        }
    }
Exemplo n.º 6
0
 public void PopulateLicensePage()
 {
     Debug.Log("Status: " + currentCustomer.GetLeaderName());
     LicensePage.PopulateLicensePage(currentDeity, currentCustomer);
 }
Exemplo n.º 7
0
 public void AddCult()
 {
     Debug.Log("Status #2: " + CurrentCult.GetLeaderName());
     objManager.AddCult(CurrentDeity, CurrentCult);
 }