Created
April 16, 2018 07:56
-
-
Save todorok1/d6e5fff0611eabdf5929c10343ccc347 to your computer and use it in GitHub Desktop.
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
public void OnChangedMagnifyValue(){ | |
// Sliderの値を拡大率に反映 | |
magnify = (int)zoomSlider.value; | |
// ZoomTextに文字列を設定 | |
zoomText.text = zoomTextPrefix + magnify.ToString() + zoomTextSuffix; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment