public void SetScraps(int s) { if (eManager == null) { eManager = GameObject.Find("LevelManager").GetComponent <EconomyManager>(); } eManager.SetScraps(s); }