Skip to content

Instantly share code, notes, and snippets.

View kristianpd's full-sized avatar

Kristian PD kristianpd

View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;
using UnityEngine.SceneManagement;
using VRTK;
using System.Linq;
/// <summary>
@kristianpd
kristianpd / BasicNetworkedSceneManager.cs
Last active February 18, 2021 08:25
Additive scene loading over network with Unity UNet
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;
using UnityEngine.SceneManagement;
using VRTK;
using System.Linq;
/// <summary>
@kristianpd
kristianpd / admin.md
Last active June 25, 2018 08:09
History of Admin Next
@kristianpd
kristianpd / debounce.coffee
Created June 26, 2012 17:46
debounce option on function to only result in one call within time threshold
Function::debounce = (threshold, functionArgs...) ->
@_debounceTimeout = @_debounceTimeout ? null
do =>
delayed = =>
@.apply(@, functionArgs)
@_debounceTimeout = null;
if @_debounceTimeout
clearTimeout(@_debounceTimeout)