private static IEnumerator TownWrapper(IEnumerator townRoutine, SpawnerScript instance, int[] s, PlanetInfo planet) { yield return(townRoutine); planet.InvokeOnGenerateTown(instance, s); yield break; }
private static IEnumerator Town(SpawnerScript instance, int[] s, PlanetInfo planet) { MenuScript.player.GetComponent <NetworkView>().RPC("Invis", RPCMode.All, new object[0]); InstanceTracker.GameScript.fadeObj.SendMessage("fadeOut2"); yield return(new WaitForSeconds(0.5f)); MenuScript.player.SendMessage("Reset"); GameScript.inInstance = false; instance.ship.SetActive(false); SpawnerScript.curBiome = s[0]; planet.InvokeOnGenerateTown(instance, s); InstanceTracker.GameScript.TeleportPlayer(0); yield return(new WaitForSeconds(0.8f)); instance.musicbox.SendMessage("PlayTune", SpawnerScript.curBiome); InstanceTracker.GameScript.fadeObj.SendMessage("fadeIn2"); GameScript.wormBossCounter = 0; GameScript.hivemindCounter = 0; yield break; }