Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(Camera), typeof(Collider), typeof(Transform))]
public class ResetTest : MonoBehaviour
Transform _transform;
Collider _collider;
Camera _camera;
void Reset ()
_transform = GetComponent<Transform>();
_collider = GetComponent<Collider>();
_camera = GetComponent<Camera>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment