public void LogMatchInput(MatchInput matchinput) { string sMatchInput = string.Format("mi:{0}", matchinput.iPlayerActing); int[] arnSerializedMatchInput = matchinput.Serialize(); sMatchInput += LibConversions.ArToStr(arnSerializedMatchInput); //Also print out a friendly human-readable input sMatchInput += "\n" + matchinput.ToString(); WriteToMatchLogFile(sMatchInput); }
public void SendInput(int indexInput, MatchInput matchinputToSend) { Debug.LogFormat(LibDebug.AddColor("Sending selection: {0}", LibDebug.Col.BLUE), matchinputToSend); photonview.RPC("ReceiveMatchInput", RpcTarget.AllBufferedViaServer, indexInput, matchinputToSend.Serialize()); }