Skip to content

Instantly share code, notes, and snippets.

@lgorny
lgorny / NTPDate.cs
Last active November 27, 2022 13:32
Implementation of simplified NTP protocol in Unity. Based on http://ftvoid.com/blog/post/847
using UnityEngine;
using System;
using System.Collections;
using System.Net;
using System.Net.Sockets;
using System.Threading;
/// <summary>
/// Class implements simplified NTP protocol. Based on RFC 5905 (https://www.ietf.org/rfc/rfc5905.txt)
/// </summary>
@lgorny
lgorny / ProjectScenes.cs
Created July 27, 2016 10:06
Class shows all scenes in Unity project and helps switching between them.
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using UnityEditor.SceneManagement;
/// <summary>
/// Class shows all scenes in project and helps switching between them.
/// </summary>
public class ProjectScenes : EditorWindow
{