/** * Look for one image path. If there no one, return empty animation path * */ private string getNotEmptyAsset(ResourcesDataControl resource, string asset) { if (resource != null) { var path = resource.getAssetPath(asset); return(!string.IsNullOrEmpty(path) && !path.StartsWith(EMPTY_ANIMATION) ? path : null); } return(null); }