void addPathIfNeeded(Entity e, float offsetY, int path) { PathModel pathModel = null; if (paths.GetSingleEntity().pathsModel.map.TryGetValue(path.ToString(), out pathModel)) e.AddPath(0, offsetY, 0.0f, pathModel); }