Skip to content

Instantly share code, notes, and snippets.

@pkarjala
pkarjala / PlayerController.cs
Last active March 21, 2018 21:46
Physics Script for Roller Ball
using UnityEngine;
using System.Collections;
// Derived from https://unity3d.com/learn/tutorials/projects/roll-ball-tutorial/moving-player?playlist=17141
// Additional comments and renaming of some variables for clarity by Patrick Karjala
public class PlayerController : MonoBehaviour {
// The speed that the object will move at; defaults to 0.
public float speed;
@pkarjala
pkarjala / ptposttype
Last active August 29, 2015 14:18
Performance Task Post Type Creation
$performance_task_labels = array(
'name' => _x( 'Performance Tasks', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Performance Task', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Performance Task', 'text_domain' ),
'name_admin_bar' => __( 'Performance Task', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'Performance Tasks', 'text_domain' ),
'add_new_item' => __( 'Add New Performance Task', 'text_domain' ),
'add_new' => __( 'Add New', 'text_domain' ),
'new_item' => __( 'New Performance Task', 'text_domain' ),