Last active
May 4, 2018 09:44
-
-
Save todorok1/ff617582db23bb41426bb40f8c20654a 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
void Start(){ | |
rb = gameObject.GetComponent<Rigidbody>(); | |
distanceText = distanceTextObject.GetComponent<Text>(); | |
highScoreText = highScoreTextObject.GetComponent<Text>(); | |
powerMeterSlider = powerMeterObject.GetComponent<Slider>(); | |
arrowRt = angleArrowObject.GetComponent<RectTransform>(); | |
angleUpButton = angleArrowUpButtonObject.GetComponent<Button>(); | |
angleDownButton = angleArrowDownButtonObject.GetComponent<Button>(); | |
guideManager = guideManagerObject.GetComponent<GuideManager>(); | |
boostButton = boostButtonObject.GetComponent<Button>(); | |
// GetComponentの結果をキャッシュ | |
cameraController = cameraObject.GetComponent<CameraController>(); | |
// DistanceTextとHighScoreTextの初期値をセット | |
SetDistanceText(0f); | |
SetHighScoreText(0f); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment