Skip to content

Instantly share code, notes, and snippets.

View 404ryannotfound's full-sized avatar

404ryannotfound 404ryannotfound

View GitHub Profile
@404ryannotfound
404ryannotfound / AchievementManager.cs
Created August 1, 2016 23:35 — forked from Mikea15/AchievementManager.cs
Simple Achievement System in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Achievement
{
public int countToUnlock { get; set; }
public bool isUnlocked { get; set; }
public string Message { get; set; }
@404ryannotfound
404ryannotfound / VrModeSwitch.cs
Created June 27, 2017 12:49 — forked from kormyen/VrModeSwitch.cs
Unity3D script for switching between Cardboard VR mode and "magic window" (non-vr-36-mode). For reference GyroCamera.cs see https://gist.github.com/kormyen/a1e3c144a30fc26393f14f09989f03e1 . For referenced VREyeRaycaster.cs see Unity VR samples https://www.assetstore.unity3d.com/en/#!/content/51519
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.VR;
using VRStandardAssets.Utils;
public class VrModeSwitch : MonoBehaviour
{
// REFERENCE
[SerializeField] private GyroCamera _gyroControl;
@404ryannotfound
404ryannotfound / MoveCamera.cs
Created June 28, 2017 02:47 — forked from JISyed/MoveCamera.cs
Camera movement script in Unity3D. Supports rotating, panning, and zooming. Attach to the main camera. Tutorial explaining code: http://jibransyed.wordpress.com/2013/02/22/rotating-panning-and-zooming-a-camera-in-unity/
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement
// for using the mouse displacement for calculating the amount of camera movement and panning code.
using UnityEngine;
using System.Collections;
public class MoveCamera : MonoBehaviour
{
//
// VARIABLES
@404ryannotfound
404ryannotfound / Simple-HTML5-Local-Storage.js
Created April 2, 2020 13:12 — forked from jakebresnehan/Simple-HTML5-Local-Storage.js
Simple HTML5 Local Storage example to hide a element
Need to include Modernizer (http://www.modernizr.com/) and jQuery (http://jquery.com/)
$(document).ready(function($){
if (Modernizr.localstorage) {
$('#hide-button').click(function(e){
localStorage.setItem('subscribed',true);
$('#sign-up-form,#hide-button').hide();
$('#hide-button').hide();