Skip to content

Instantly share code, notes, and snippets.

@todorok1 todorok1/TutorialZoom_2.cs
Last active Apr 16, 2018

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
You can’t perform that action at this time.