Skip to content

GeneratorManager.GetPickupsInGn

notruilin edited this page Apr 16, 2019 · 1 revision

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);
}