Skip to content

Instantly share code, notes, and snippets.

Christmas story
It’s a wonderful Life
National Lampoons christmas
Home Alone
Nightmare Before Christmas
Miracle on 34th Street
Elf
The Santa Clause
Muppet Christmas Carol
Grinch Stole Christmas (Live Action)
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.Collections;
public class PCSAssetPlatformSwapper : MonoBehaviour {
/// <summary>
/// The name of the sprite collection.
/// NOTE: THIS IS AUTOMATICALLY SET FOR US WHEN WE MODIFY THE SPRITE BY 'PCSAssetPlatformSwapperEditor'
/// </summary>
/**
File:
BaseComponent.js
Created By:
Mario Gonzalez
Project :
FlexGame
Abstract:
Components work by effectively 'hi-jacking' properties of their attachedGameObject.
These properties can by functions, or non-primitive data types.
[{"id":"846196252072634_682947104","application":{"name":"PCH Cash Slots","namespace":"cashslots","id":"518795561510655"},"to":{"name":"Mario Gonzalez","id":"682947104"},"from":{"name":"Mario Gonzalez","id":"100000200542306"},"data":"{amount:10}","message":"(Message) Send me 10 chips!","created_time":"2014-03-26T03:32:38+0000"},{"id":"292506900904528_682947104","application":{"name":"PCH Cash Slots","namespace":"cashslots","id":"518795561510655"},"to":{"name":"Mario Gonzalez","id":"682947104"},"from":{"name":"Mario Gonzalez","id":"100000200542306"},"data":"{Chips:90}","message":"123","created_time":"2014-03-24T16:04:22+0000"}]
@onedayitwillmake
onedayitwillmake / RetinaProDynamicFontTempFix.cs
Created March 17, 2014 00:49
RetinaProDynamic font fix
using UnityEngine;
using System.Collections;
/// <summary>
/// This is a temporary fix for using Dynamic fonts on this project
/// retinaProUtil checks to see if this component exist, if it doesn't it adds it - this component then scales the font
/// It is a makeshift solution to a temporary problem, while an update to RetinaPro is awaited
/// </summary>
public class RetinaProDynamicFontTempFix : MonoBehaviour {
public void FixLabel( UILabel label ) {
/// Creating a dynamic 3D ribbon which moves towards a changing position each frame
/// Author Mario Gonzalez
using UnityEngine;
using System.Collections;
using System.Text;
public class RibbonMeshNotSharedVertices {
private Mesh mesh;
// Mesh Components
private Vector3[] vertices;
/// Drawing a single quad in UNITY
/// Author: Mario Gonzalez
using UnityEngine;
using System.Collections;
public class SingleQuad : MonoBehaviour {
public Transform target;
public float width = 1;
public float height = 1;
public int len = 1;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0;URL=http://lionplex.net/">
<title>NYK</title>
</head>
<body></body>
</html>
@onedayitwillmake
onedayitwillmake / boid.cs
Created August 20, 2013 03:43
Simpld Boid with seeking behavior in C#
using UnityEngine;
using System.Collections;
public class Boid : MonoBehaviour {
// Position
public Vector3 position;
private Vector3 _previousPosition;
// State
using namespace ci;
using namespace ci::app;
static const int FBO_WIDTH = 800, FBO_HEIGHT = 600;
static cinder::gl::Fbo mFBO1;
static cinder::gl::Fbo mFBO2;
static cinder::gl::GlslProgRef mShader;
void RibbonPaintMacApp::setup() {
_shouldDrawToFBO = false;
_colorManager.setInitialState( ColorModeType::ColorModeTypeAlphaBlend1 );