Skip to content

Instantly share code, notes, and snippets.

View GuilleUCM's full-sized avatar

Guillermo Jiménez GuilleUCM

View GitHub Profile
@GuilleUCM
GuilleUCM / MenuItem.cs
Created June 9, 2013 10:29
Unity: Menu Item
using UnityEngine;
[RequireComponent (typeof (Collider))]
public class MenuItem: MonoBehaviour {
public KeyCode m_shortcut = KeyCode.Space;
public bool m_QuitButton = false;
public string m_levelName;
public Color m_colorNormal = Color.white;
public Color m_colorHighlighted = Color.red;
@GuilleUCM
GuilleUCM / gist:5661733
Last active October 13, 2023 20:31 — forked from entaroadun/gist:1653794
Recommendation datasets

Movies Recommendation:

Music Recommendation:

@GuilleUCM
GuilleUCM / CSharpSpatialHash.cs
Created May 11, 2013 09:30 — forked from sixman9/CSharpSpatialHash.cs
Unity: SpatialHash
/*
http://entitycrisis.blogspot.com/2010/02/spatial-hash-class-in-c.html
This is a rather useful class, the Spatial Hash. It is used for creating an index of spatial data (3D things in space) and allowing fast queries to be run against the index.
Effectively, you can use this class to ask, "I'm at this position, what other objects are near me?".
*/
using UnityEngine; //This needs to be 'removed' to make 'universal', i.e. not tied to Unity3D
using System.Collections;