private void SpawnSoul() { if (!m_canSpawn) { return; } //Get a soul from the object pool and assign it as the current soul if (m_currentSoul == null) { GameObject soulObj = m_soulPool.GetObject(); soulObj.transform.position = transform.position; Soul soul = soulObj.GetComponent <Soul>(); m_currentSoul = soul; } else if (!m_currentSoul.FindProcessor(m_procListSet)) { m_timer = 0.1f; } else { m_currentSoul = null; m_inQueue--; } }