Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
namespace OhiraKyou.Extensions {
public static class CollectionExtensions {
public static Dictionary<TKey, TValue> WithoutNullKeys<TKey, TValue> (this Dictionary<TKey, TValue> dictionary) {
return (from kv in dictionary
using System.Collections.Generic;
using UnityEngine;
namespace OhiraKyou.Extensions {
public static class RigidbodyExtensions {
private static Dictionary<Rigidbody, Vector3[]> velocities = new Dictionary<Rigidbody, Vector3[]>();
private const int VELOCITY_INDEX = 0;