Skip to content

Instantly share code, notes, and snippets.

View clarkli86's full-sized avatar

Clark Li clarkli86

  • Adelaide, Australia
View GitHub Profile
@clarkli86
clarkli86 / StareButton.cs
Last active June 9, 2016 02:48 — forked from flarb/StareButton.cs
This is a 'stare button' for Google Cardboard apps where you just want to stare at a button over time to select it.
using System;
using System.Reflection;
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.UI;
public class StareButton : MonoBehaviour, IEventSystemHandler, IPointerExitHandler, IPointerEnterHandler, ISelectHandler {
@clarkli86
clarkli86 / 0_reuse_code.js
Created August 31, 2014 05:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console