public void addAP() { App app = UnityEngine.Object.FindObjectOfType <App>(); Nation player = State.getNations()[app.GetHumanIndex()]; PlayerPayer.payForAP(player); PlayerReceiver.collectAP(player, 5); uiUpdater.updateUI(); }