private void addResearchPoints() { App app = UnityEngine.Object.FindObjectOfType <App>(); Nation player = State.getNations()[app.GetHumanIndex()]; PlayerPayer.PayForResearch(player); PlayerReceiver.CollectResearchPoints(player); currentResearchPoints.text = player.Research.ToString(); numberPattents.text = player.getNumberPattents().ToString(); Debug.Log("fff"); }