GeneratorManager.GetPickupsInGn - notruilin/DeceptionGame GitHub Wiki

public List GetPickupsInGn();

Description

Returns a list of GameObjects of all pickups in the generator. You could get the pickup's position by GameObject.

GameObject generator = GameManager.instance.generators[generatorId];
foreach (GameObject pickup in generator.GetComponent<GeneratorManager>().GetPickupsInGn())
{
    print(pickup.transform.position);
}
⚠️ **GitHub.com Fallback** ⚠️