public static void CachePhoto(Texture2D photo, VoidDelegate onPhotoCachedCallback) { if (singleton == null) { Debug.LogError("ApplicationManager.singleton was null when CachePhoto(" + photo.name + ", " + onPhotoCachedCallback.ToString() + ") was called. Aborting."); return; } singleton._CachePhoto(photo, onPhotoCachedCallback); }