void Start() { _myPoolEcs = GetComponent <ObjectPoolECS> (); InvokeRepeating("SpawnStuffPOOLED", 1f, 0.5f); //~80fps //InvokeRepeating ("SpawnStuffNORMAL", 0f, 0.005f); //~30fps }
public void LateStart() { print("Starting Belt System"); itemPool = new ObjectPoolSimple <BeltItem>(maxItemCount, maxItemCount); itemPool.SetUp(); entityPoolEcs = GetComponent <ObjectPoolECS>(); SetupBeltSystem(); //StartCoroutine(CreateGfxsSlowly()); StartBeltSystemLoops(); allCreators = new List <MagicItemCreator>(FindObjectsOfType <MagicItemCreator>()); allDestroyers = new List <MagicItemDestroyer>(FindObjectsOfType <MagicItemDestroyer>()); FindObjectOfType <AutoRotate>().speed *= -1f; }