r2mods/ilspy_dump/ror2_csproj/RoR2/NetworkSpawnOnStart.cs

16 lines
225 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
using UnityEngine.Networking;
namespace RoR2;
public class NetworkSpawnOnStart : MonoBehaviour
{
private void Start()
{
if (NetworkServer.active)
{
NetworkServer.Spawn(base.gameObject);
}
}
}