C# Class UnityRose.Cache

This class is used to cache resources that are used most commonly in the current map
Afficher le fichier Open project: osROSE/UnityRose Class Usage Examples

Méthodes publiques

Méthode Description
Cache ( ResourceManager rm, int maxSize ) : System

Constructor for a Cache with a max size

request ( string resource ) : object

Method Details

Cache() public méthode

Constructor for a Cache with a max size
public Cache ( ResourceManager rm, int maxSize ) : System
rm ResourceManager A reference to the resource manager for loading/unloading resources
maxSize int The max size for this cache
Résultat System

request() public méthode

public request ( string resource ) : object
resource string
Résultat object