Skip to content

Instantly share code, notes, and snippets.

View rihardn's full-sized avatar

Rihard Novačan rihardn

View GitHub Profile
@jakubfiala
jakubfiala / custom_console.js
Created February 1, 2016 14:05
this small script intercepts the standard console methods and provides a way of accessing their messages, as well as stack traces, which is really cool. it formats the stack traces for popular browsers
//==========================================================
// CUSTOM JAVASCRIPT CONSOLE
// built by jakub fiala
//
// this small script intercepts the standard console methods
// and provides a way of accessing their messages,
// as well as stack traces, which is really cool.
// it formats the stack traces for popular browsers
//
// contributions welcome!
@sam-kelly-dev
sam-kelly-dev / BaseController.cs
Last active March 18, 2017 06:20
# Unity3D 5.0 - Mecanim Third Person Character Controller Scripts # A BaseController to act as a hub for character actions, and a PlayerController to accept input and make it available to the state machine.
using UnityEngine;
using System.Collections;
//You must add the following Components to the object or else this script will fail.
[RequireComponent(typeof(Rigidbody))]
[RequireComponent(typeof(CapsuleCollider))]
[RequireComponent(typeof(Animator))]
//Provides a set of default values to instance and build on top of.
public class Movement{