public void JumpJudgment() { if (moveSwitch && Set_sceneChange) { // セレクトボックス回転 if (boxOrientation != BOXORIENTATION.SoundName) { DOTween .To(value => SoundName_AxisRotate(value), 0, 270, 0.5f) .SetEase(Ease.OutBack) .OnStart(() => { moveSwitch = false; value_Old = 0; }) .OnUpdate(() => { // 対象の値が変更される度によばれる SoundInformation.SetActive(true); soundBoxes.SetActive(false); }) .OnComplete(() => { boxOrientation_Old = boxOrientation; boxOrientation = BOXORIENTATION.SoundName; moveSwitch = true; }); } } }
void Start() { boxOrientation = BOXORIENTATION.soundBox_1; boxOrientation_Old = boxOrientation; Set_LeftJudgment = false; Set_RightJudgment = false; Set_JumpJudgment = false; }
void Start() { boxOrientation = BOXORIENTATION.soundBox_1; boxOrientation_Old = boxOrientation; musicManagement = GetComponent <MusicManagement>(); GameObject childObject = transform.Find("SoundInformation").gameObject; GameObject anotherObject = GameObject.Find("SceneChangeBox"); sceneChangeEffect = anotherObject.GetComponent <SceneChangeEffect>(); Set_LeftJudgment = false; Set_RightJudgment = false; Set_JumpJudgment = false; Set_sceneChange = true; }
public void JumpJudgment() { if (moveSwitch && BpmMove_Cube.Set_sceneChange) { // セレクトボックス回転 if (boxOrientation != BOXORIENTATION.SoundName) { SE_Manager.SePlay(SE_Manager.SE_NAME.Jump); DOTween .To(value => SoundName_AxisRotate(value), 0, 270, 0.5f) .SetEase(Ease.OutBack) .OnStart(() => { moveSwitch = false; value_Old = 0; }) .OnComplete(() => { boxOrientation_Old = boxOrientation; boxOrientation = BOXORIENTATION.SoundName; moveSwitch = true; }); } } }