// Using the following IDs: // 1 and 2 lie opposite to each other and // 3 and 4 lie opposite to each other // 5 is on top public void ClientTouchedBoxFace(int ID) { ClickedPuzzleMessage msg = new ClickedPuzzleMessage(); msg.FaceID = ID; if (null != Client) { Client.Send(MyMsgType.ClickedPuzzle, msg); } }
private void OnClickedPuzzle(NetworkMessage netMsg) { ClickedPuzzleMessage msg = netMsg.ReadMessage <ClickedPuzzleMessage>(); Player.OnRegisteredPuzzleClick(msg.FaceID); }