Last active
August 29, 2015 14:19
-
-
Save tsubaki/fd9032be83893064e689 to your computer and use it in GitHub Desktop.
リセット時に色々と設定する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(Camera), typeof(Collider), typeof(Transform))] | |
public class ResetTest : MonoBehaviour | |
{ | |
[SerializeField] | |
Transform _transform; | |
[SerializeField] | |
Collider _collider; | |
[SerializeField] | |
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