Skip to content

Instantly share code, notes, and snippets.

View pixelryan's full-sized avatar
🏀
Welcome to Treasure Drop!

Ryan Dormanesh pixelryan

🏀
Welcome to Treasure Drop!
View GitHub Profile
### Keybase proof
I hereby claim:
* I am pixelryan on github.
* I am ryan2 (https://keybase.io/ryan2) on keybase.
* I have a public key ASCDk4wOwKBHFcgxXka7zAJ2h9qy4amx4JIYzsAdFs0WaQo
To claim this, I am signing this object:
@pixelryan
pixelryan / RandomPathPicker.cs
Created October 2, 2018 06:19
Pick a random dolly path for your Cinemachine camera. Just attach this to your camera and drag all the paths you want to choose from!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cinemachine;
public class RandomPathPicker : MonoBehaviour {
public CinemachinePathBase [] possiblePaths;
void Start () {
int randomPathNumber = Random.Range(0, possiblePaths.Length);