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
// PowerMeterオブジェクトへの参照 | |
[SerializeField] | |
GameObject powerMeterObject; | |
// 加える力の大きさ | |
float forceMagnitude = 0f; | |
// イカ、中略 | |
// Sliderコンポーネントへの参照 | |
Slider powerMeterSlider; | |
// メーターの速さ | |
[SerializeField] | |
float meterSpeed = 0.2f; | |
// メーターが最大値になった時のディレイ | |
[SerializeField] | |
float delayTime = 0.08f; | |
float waitTime = 0f; | |
// メーターが増加中か減少中か(trueで増加中) | |
bool isMeterIncreasing = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment