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
0b1a994c
Commit
0b1a994c
authored
Oct 27, 2016
by
Naliwe GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed scores ?
parent
91430032
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Server.cs
Assets/Scripts/API/Server.cs
+7
-2
Player.cs
Assets/Scripts/Player.cs
+2
-1
No files found.
Assets/Scripts/API/Server.cs
View file @
0b1a994c
...
...
@@ -7,7 +7,7 @@ using System.Linq;
namespace
Assets.Scripts.API
{
public
class
Server
:
MonoBehaviour
public
class
Server
:
MonoBehaviour
{
public
static
string
HOST_PROD
=
"https://quantifly.plnech.fr"
;
public
static
string
HOST
=
"http://localhost:8990"
;
...
...
@@ -16,6 +16,11 @@ namespace Assets.Scripts.API
{
}
public
void
Start
()
{
GetScores
();
}
public
void
GetScores
()
{
StartCoroutine
(
GetScoresAsync
());
...
...
@@ -23,7 +28,7 @@ namespace Assets.Scripts.API
}
IEnumerator
GetScoresAsync
()
{
UnityWebRequest
www
=
UnityWebRequest
.
Get
(
HOST
+
"/scores/"
);
UnityWebRequest
www
=
UnityWebRequest
.
Get
(
HOST
_PROD
+
"/scores/"
);
yield
return
www
.
Send
();
if
(
www
.
isError
)
{
...
...
Assets/Scripts/Player.cs
View file @
0b1a994c
using
UnityEngine
;
using
Assets.Scripts.API
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
namespace
Assets.Scripts
...
...
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