Exemplo n.º 1
0
    /// <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]);
    }
Exemplo n.º 2
0
    /// <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));
    }