/// <summary> /// Gets a random object instantiated by the ResourceLibrary. /// </summary> /// <returns>The random original (ie, the GameObject instantiated by Resource.Load).</returns> public GameObject GetRandomOriginal() { string key = SaFrMo.Pick <string> (keys); return(dictionary [key]); }
/// <summary> /// Copies a random resource held in this ResourceLibrary. /// </summary> /// <returns>The random resource.</returns> public GameObject CopyRandomResource() { string key = SaFrMo.Pick <string> (keys); return(CopyResource(key)); }