internal void Load1(DecorationType type) { CustomDecorationsData pack; switch (type) { case DecorationType.Grass: pack = AvailablePacks.Find(p => p.Name == Settings.SelectedGrassPack); break; case DecorationType.Fertile: pack = AvailablePacks.Find(p => p.Name == Settings.SelectedFertilePack); break; default: pack = AvailablePacks.Find(p => p.Name == Settings.SelectedCliffPack); break; } if (pack != null) { LoadResources(pack, type); } }
internal void Load(DecorationType type) { CustomDecorationsData pack; switch (type) { case DecorationType.Grass: pack = AvailablePacks.Find(p => p.Name == Settings.SelectedGrassPack); break; case DecorationType.Fertile: pack = AvailablePacks.Find(p => p.Name == Settings.SelectedFertilePack); break; default: pack = AvailablePacks.Find(p => p.Name == Settings.SelectedCliffPack); break; } if (pack != null) { UnityMainThreadDispatcher.Instance().Enqueue(LoadResources(pack, type)); } }