public static bool ChangeOre(int deltaAmount) { if (OnEnterGame.gameInfo.ores[Login.playerID] + deltaAmount < 0) { onEnterGame.ShowNotEnoughOres(); return(false); } OnEnterGame.gameInfo.ores[Login.playerID] += deltaAmount; onEnterGame.SetOreText(); return(true); }