public void LEAVE_SESSION() { if (NetworkingScript.allClients[NetworkingScript.MY_ID].currentPartner >= 0) { NetworkingScript.SendJoinRequest(-1); } }
public void configureToSendOnChannel(String channel, NetworkingScript sender) { if (this.childScript != null) { this.childScript.setupToSend(sender, channel); } }
public void SEND_MSG() { if (typing.text.Length > 0) { NetworkingScript.SendMessage(typing.text); } //Debug.Log(typing.text.Length); }
//float INC = 0f; //float MAX = 0.1f; // Update is called once per frame void Update() { if (NetworkingScript.CONNECTION) { NetworkingScript.ProcessPackets(); //INC += Time.deltaTime; //if (INC > MAX && NetworkingScript.MY_ID >= 0) //{ // NetworkingScript.SendPlayerData(); // while (INC > MAX) // INC -= MAX; //} } }
public void SendJoinReq5() { NetworkingScript.SendJoinRequest(5); }
public void SendJoinReq4() { NetworkingScript.SendJoinRequest(4); }
public void SendJoinReq3() { NetworkingScript.SendJoinRequest(3); }
public void SendJoinReq2() { NetworkingScript.SendJoinRequest(2); }
public void SendJoinReq1() { NetworkingScript.SendJoinRequest(1); }
public void SendJoinReq0() { NetworkingScript.SendJoinRequest(0); }
/// <summary> /// This method is used to provide the channel, and a refernece to the parent NetworkingScript. This probably /// should not be overridden in child classes. /// This method is used by NetworkingScript. /// </summary> /// <param name="script"> Parent Script</param> /// <param name="channel">Channel that this object is on. </param> public void setupToSend(NetworkingScript script, String channel) { this.parentScript = script; this.channel = channel; }
private void OnApplicationQuit() { NetworkingScript.CleanUpWINSOCK(); }
public void SendJoinReq9() { NetworkingScript.SendJoinRequest(9); }
public void SendJoinReq8() { NetworkingScript.SendJoinRequest(8); }
public void SendJoinReq7() { NetworkingScript.SendJoinRequest(7); }
public void SendJoinReq6() { NetworkingScript.SendJoinRequest(6); }
public void CONNECT_TO_SERVER() { NetworkingScript.JoinServer(IP.text, PORT.text); }
private void Awake() { NetworkingScript.StartUp(); }