Skip to content

Commit 6c3fec5

Browse files
committed
compatible with unity 5
1 parent 148d017 commit 6c3fec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toggle_demo/ugui_project/Assets/ToggleSlider/ToggleSlider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private float percent {
4141
private bool dragging = false;
4242

4343
public void Start () {
44-
anim = animation;
44+
anim = GetComponent<Animation>();
4545
animState = anim[anim.clip.name];
4646
// reset effects
4747
percent = 0;

0 commit comments

Comments
 (0)