Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active April 16, 2018 07:54
Embed
What would you like to do?
Unityチュートリアル・カメラの追従とズームイン・ズームアウトさせるスクリプト。
void Start(){
// オフセットを計算する
offset = gameObject.transform.position - player.transform.position;
// 参照を取得
zoomSlider = sliderObject.GetComponent<Slider>();
zoomText = zoomTextObject.GetComponent<Text>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment