예제 #1
0
    // 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);
        }
    }
예제 #2
0
    private void OnClickedPuzzle(NetworkMessage netMsg)
    {
        ClickedPuzzleMessage msg = netMsg.ReadMessage <ClickedPuzzleMessage>();

        Player.OnRegisteredPuzzleClick(msg.FaceID);
    }