protected void SendSwitchState2Client(Session session) { FunctionSwitch2Client msg = new FunctionSwitch2Client(); msg.functionName = FunctionName; msg.isOpenFunction = isOpenFunction; netManager.Send(session, msg); }
private void SendSwitchState2Client(LiteNetLibManager.Player player) { FunctionSwitch2Client msg = new FunctionSwitch2Client(); msg.functionName = FunctionName; msg.isOpenFunction = isOpenFunction; netManager.Send(player, msg); }