IEnumerator SearchCoroutine() { while (true) { if (m_kudanTracker.ArbiTrackIsTracking() && isSerching) { yield return(new WaitForSeconds(m_spawnTime)); m_eggSpawner.Spawn(); } yield return(null); } }
IEnumerator SearchCoroutine() { while (true) { if (isSerching) { m_eggSpawner.Spawn(); yield return(new WaitForSeconds(m_spawnTime)); } yield return(null); } }