Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Lockdown
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SplooshArts
Lockdown
Commits
2be9b753
Commit
2be9b753
authored
9 years ago
by
Mees
Browse files
Options
Downloads
Patches
Plain Diff
Progress Script
parent
8abe851a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Lockdown/Assets/Scripts/Progress.cs
+31
-0
31 additions, 0 deletions
Lockdown/Assets/Scripts/Progress.cs
Lockdown/Assets/Scripts/Progress.cs.meta
+12
-0
12 additions, 0 deletions
Lockdown/Assets/Scripts/Progress.cs.meta
with
43 additions
and
0 deletions
Lockdown/Assets/Scripts/Progress.cs
0 → 100644
+
31
−
0
View file @
2be9b753
using
UnityEngine
;
using
UnityEngine.UI
;
using
System.Collections
;
public
class
Progress
:
MonoBehaviour
{
Slider
slider
;
int
i
;
void
Start
()
{
slider
=
GameObject
.
Find
(
"ProgressBar"
).
GetComponent
<
Slider
>();
i
=
0
;
}
public
void
ChangeValue
(
int
change
)
{
slider
.
value
+=
change
;
}
void
Update
()
{
if
(
i
==
100
)
{
i
=
0
;
ChangeValue
(-
1
);
}
else
i
++;
}
}
This diff is collapsed.
Click to expand it.
Lockdown/Assets/Scripts/Progress.cs.meta
0 → 100644
+
12
−
0
View file @
2be9b753
fileFormatVersion: 2
guid: 4dd3c6af294b0934e9d7e782b33664ae
timeCreated: 1456835672
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment