public static bool TryToRegisterCollectible(GlobalConstants.Collectibles collectible) { int collectibleInt = (int)collectible; if (collectibleTracker[collectibleInt]) { return(false); } else { collectibleTracker[collectibleInt] = true; return(true); } }
public static GameObject RetrieveCollectiblePrefab(GlobalConstants.Collectibles collectible) { return(instance.collectiblePrefabs[collectible]); }
public static void DeregisterCollectible(GlobalConstants.Collectibles collectible) { int collectibleInt = (int)collectible; collectibleTracker[collectibleInt] = false; }