Exemple #1
0
    public void Earnings()
    {
        for (int ControlledPopulationNodesIndex = 0; ControlledPopulationNodesIndex < ControlledPopulationNodes.Count; ControlledPopulationNodesIndex++)
        {
            Funds += ControlledPopulationNodes[ControlledPopulationNodesIndex].GetComponent <PopulationNode>().Stats.GetIncome();
            Debug.Log(ControlledPopulationNodes[ControlledPopulationNodesIndex].GetComponent <PopulationNode>().Stats.PopulationNodeName + " +" + ControlledPopulationNodes[ControlledPopulationNodesIndex].GetComponent <PopulationNode>().Stats.GetIncome());
        }

        if (Globals.PlayerFaction == FactionId)
        {
            _factionDataDisplay.Update(FactionId, ControlledPopulationNodes.Count, ControlledSpies.Count, ControlledMilitary.Count, Funds);
        }
    }