Skip to content

Commit 736cf8c

Browse files
committed
feat: fixing progress bar
1 parent 9232f05 commit 736cf8c

19 files changed

+2616
-1
lines changed
637 KB
Binary file not shown.

Assets/ProgressBar/Scene/Demo.cs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class Demo : MonoBehaviour {
6+
7+
public ProgressBar Pb;
8+
public ProgressBarCircle PbC;
9+
10+
private void Start()
11+
{
12+
Pb.BarValue = 50;
13+
PbC.BarValue = 50;
14+
}
15+
16+
void FixedUpdate () {
17+
18+
if(Input.GetKey(KeyCode.KeypadPlus))
19+
{
20+
Pb.BarValue += 1;
21+
PbC.BarValue += 1;
22+
}
23+
24+
if (Input.GetKey(KeyCode.KeypadMinus))
25+
{
26+
Pb.BarValue -= 1;
27+
PbC.BarValue -= 1;
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)