r2mods/ilspy_dump/ror2_csproj/RoR2/NetworkSpawnOnStart.cs

16 lines
225 B
C#

using UnityEngine;
using UnityEngine.Networking;
namespace RoR2;
public class NetworkSpawnOnStart : MonoBehaviour
{
private void Start()
{
if (NetworkServer.active)
{
NetworkServer.Spawn(base.gameObject);
}
}
}