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"); }
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"); }