Dependency Injection
using DOTSNET;
[ServerWorld]
public class TestSystem : ComponentSystem
{
void DoSomething()
{
// send a message
GetExistingSystem<NetworkServerSystem>().Send(...);
}
void DoSomethingElse()
{
// send a message
GetExistingSystem<NetworkServerSystem>().Send(...);
}
}Last updated