// Use this for initialization void Start() { alertPanel.SetActive(false); dm = new dataManager(); getGameData(); //mpm = new mainPanelManager(); string returnedScripts = dm.returnScripts(); scripts = returnedScripts.Split(','); string returnedMarketForces = dm.returnMarketForces(); marketForces = returnedMarketForces.Split(','); string returnedPorts = dm.returnAllPorts(); ports = returnedPorts.Split('_'); if (mapManager.doITakeMoney) { //Need to take the tax off your money OR receive money from the tax if you own it portTax(); //Need to pay the crew (which is influenced by market forces) payCrew(); } }
public void showAlert() { alertPanel.SetActive(true); string returnedPirateAlertScripts = dm.returnScripts(); string[] scripts = returnedPirateAlertScripts.Split(','); alertText.text = scripts[0] + howManySilverPiratesTook.ToString() + scripts[1].ToString() + howManyPotteryPiratesTook.ToString() + scripts[2].ToString(); }