Exemplo n.º 1
0
        public static void OnEnterCheckpoint(NetStream stream)
        {
            int checkpoint    = (int)stream.ReadUInt32(6);
            int subObjectives = (int)stream.ReadUInt32(6);

            Game.instance.EnterCheckpoint(checkpoint, subObjectives);
            Debug.Log("Received Checkpoint Message");
        }
Exemplo n.º 2
0
        public static void OnResetLevel(NetStream stream)
        {
            int checkpoint    = (int)stream.ReadUInt32(6);
            int subObjectives = (int)stream.ReadUInt32(6);

            Game.currentLevel.Reset(checkpoint, subObjectives);
            Game.currentLevel.PostEndReset(checkpoint);
            Game.instance.currentCheckpointNumber        = 0;
            Game.instance.currentCheckpointSubObjectives = 0;
            Debug.Log("Received Reset Level Message");
        }