Skip to content

Commit

Permalink
feat: fixing progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoneerC committed Sep 26, 2024
1 parent 9232f05 commit 736cf8c
Show file tree
Hide file tree
Showing 19 changed files with 2,616 additions and 1 deletion.
Binary file added Assets/ProgressBar/How to use this asset.pdf
Binary file not shown.
30 changes: 30 additions & 0 deletions Assets/ProgressBar/Scene/Demo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Demo : MonoBehaviour {

public ProgressBar Pb;
public ProgressBarCircle PbC;

private void Start()
{
Pb.BarValue = 50;
PbC.BarValue = 50;
}

void FixedUpdate () {

if(Input.GetKey(KeyCode.KeypadPlus))
{
Pb.BarValue += 1;
PbC.BarValue += 1;
}

if (Input.GetKey(KeyCode.KeypadMinus))
{
Pb.BarValue -= 1;
PbC.BarValue -= 1;
}
}
}
Loading

0 comments on commit 736cf8c

Please sign in to comment.