public void Start() { ExecuteOnMainThread = new Queue <Action>(); if (Assets.Scripts.Networking.Network.Instance.ClientPlayer == null) { return; } GameFlow.Instance.IsGameCreator = false; GameFlow.Instance.RoomName = ""; var remoteMethod = new RemoteInvokeMethod("BoardBehavior", Command.GetLobbies); var bytes = RemoteInvokeMethod.WriteToStream(remoteMethod); Assets.Scripts.Networking.Network.Instance.Client.Send(bytes, bytes.Length, 0); }
private static void BeginSendPackage(RemoteInvokeMethod remoteMethod) { var bytes = RemoteInvokeMethod.WriteToStream(remoteMethod); Network.Instance.Client.Send(bytes, bytes.Length, 0); }