public void Load(ResourceCache resources, string mapFile) { var mapThread = LoadMap(mapFile).ContinueWith( task => { var texPath = task.Result; if (!string.IsNullOrWhiteSpace(texPath)) _tex = resources.Load<Texture>(texPath); }); }
public void Load(ResourceCache resources, string mapFile) { var mapThread = LoadMap(mapFile).ContinueWith( task => { var texPath = task.Result; if (!string.IsNullOrWhiteSpace(texPath)) { _tex = resources.Load <Texture>(texPath); } }); }
public void Load(ResourceCache resources, string textureName) { _tex = resources.Load <Texture>(textureName); }
public void Load(ResourceCache resources, string textureName) { _tex = resources.Load<Texture>(textureName); }