Unityチュートリアル・カメラの追従とズームイン・ズームアウトさせるスクリプト。
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
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