Exemplo n.º 1
0
    public static bool TryToRegisterCollectible(GlobalConstants.Collectibles collectible)
    {
        int collectibleInt = (int)collectible;

        if (collectibleTracker[collectibleInt])
        {
            return(false);
        }
        else
        {
            collectibleTracker[collectibleInt] = true;
            return(true);
        }
    }
Exemplo n.º 2
0
 public static GameObject RetrieveCollectiblePrefab(GlobalConstants.Collectibles collectible)
 {
     return(instance.collectiblePrefabs[collectible]);
 }
Exemplo n.º 3
0
    public static void DeregisterCollectible(GlobalConstants.Collectibles collectible)
    {
        int collectibleInt = (int)collectible;

        collectibleTracker[collectibleInt] = false;
    }