Skip to content

Instantly share code, notes, and snippets.

@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{