//void SpawnFromPattern() //{ // //if (SpawnManager.Instance.currentSpawnMode == SPAWN_MODE.SPAWN_RANDOMLY || SpawnManager.Instance.currentSpawnMode == SPAWN_MODE.DEFAULT) // //{ // // objToSpawn = RandomWeightsManager.Instance.GetRandomObject(); // //} // GameObject spawned = ObjectPooler.Instance.GetPooledObject(objToSpawn); // //Debug.Log(name + " | " + objToSpawn); // //if (spawned != null) // //{ // // spawned.transform.position = RandomizePositionOnBounds(); // // spawned.SetActive(true); // // AppManager.gameManager.fallingObjectsList.Add(spawned.GetComponent<FallingObject>()); // //} // //if (SpawnPatternManager.Instance.currentPattern == SPAWN_PATTERNS.SPAWN_IN_A_ROW || SpawnPatternManager.Instance.currentPattern == SPAWN_PATTERNS.SPAWN_IN_A_ROW_DELAYED) // //{ // // StopSpawning(); // //} //} public void StartSpawning() { //Debug.Log("START SPAWNING"); spawnTimer.SetTimer(); spawnTimer.StartSpawn = true; }