Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igem-quantifly
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
igem-quantifly
Commits
31b8844a
Commit
31b8844a
authored
Oct 25, 2016
by
Raphael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bound score
parent
561e1b89
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
Main.unity
Assets/Scenes/Main.unity
+0
-0
UIController.cs
Assets/Scripts/UIController.cs
+29
-0
UIController.cs.meta
Assets/Scripts/UIController.cs.meta
+12
-0
No files found.
Assets/Scenes/Main.unity
View file @
31b8844a
No preview for this file type
Assets/Scripts/UIController.cs
0 → 100644
View file @
31b8844a
using
System
;
using
UnityEngine
;
using
System.Collections
;
using
Assets.Scripts
;
using
UnityEngine.UI
;
public
class
UIController
:
MonoBehaviour
{
public
Text
Distance
;
public
Text
Score
;
public
Text
HighScore
;
public
Text
NbVials
;
public
Image
Vial1
;
public
Image
Vial2
;
public
Image
Vial3
;
private
Player
_player
;
void
Start
()
{
_player
=
GameObject
.
FindWithTag
(
"Player"
).
GetComponent
<
Player
>();
}
void
Update
()
{
var
score
=
_player
.
Score
+
int
.
Parse
(
Distance
.
text
);
Score
.
text
=
(
_player
.
Score
+
score
).
ToString
();
}
}
Assets/Scripts/UIController.cs.meta
0 → 100644
View file @
31b8844a
fileFormatVersion: 2
guid: 8b13038290b17904d97cde1da98f964c
timeCreated: 1477403948
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment