Fixed course freezing and other course-ending bugs
This commit is contained in:
@@ -216,7 +216,7 @@ MonoBehaviour:
|
||||
thumbnail: {fileID: 4959898009379617328}
|
||||
title: {fileID: 4959898009362012447}
|
||||
button: {fileID: 4959898007614330355}
|
||||
slider: {fileID: 3971139188485731716}
|
||||
slider: {fileID: 5742510687904928776}
|
||||
completed: {fileID: 8032316393302770855}
|
||||
--- !u!95 &5637671876400780781
|
||||
Animator:
|
||||
|
||||
@@ -69,7 +69,7 @@ public class CourseItem : MonoBehaviour
|
||||
progress = Mathf.Clamp01(progress);
|
||||
completed.SetActive(1.0f <= progress);
|
||||
slider.SetActive(0.0f <= progress && progress < 1.0f);
|
||||
slider.GetComponent<SlicedSlider>().fillAmount = progress;
|
||||
slider.GetComponentInChildren<SlicedSlider>().fillAmount = progress;
|
||||
|
||||
// Add click functionality
|
||||
button.onClick.AddListener(() =>
|
||||
|
||||
Reference in New Issue
Block a user