public void OnS2C_FrozenCulling(byte userFlags, ref S2C_FrozenCulling.ArgumentData cmd, UInt16 serialId, NetCore.NetConnection connect, ref NetCore.RPCRouter.RouteData routeInfo) { if (CEngine.Instance.GameInstance != null) { CEngine.Instance.GameInstance.GameCamera.LockCulling = cmd.Enable; } }
public void AllClientsFrozenCulling(bool enable) { var pkg = new S2C_FrozenCulling.ArgumentData(); pkg.Enable = enable; if (ProfilerConnect != null) { S2C_FrozenCulling.Instance.DoCall(ref pkg, NetCore.ERouteTarget.Self, ProfilerConnect, null); } }