Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hopital Groupe 4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MARX Juliette
Hopital Groupe 4
Commits
795972b0
Commit
795972b0
authored
3 years ago
by
Juliette Marx
Browse files
Options
Downloads
Patches
Plain Diff
jhu
parent
06fa8239
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Assets/Scripts/ScriptPatient1/ScreenP1Controller.cs
+6
-3
6 additions, 3 deletions
Assets/Scripts/ScriptPatient1/ScreenP1Controller.cs
with
6 additions
and
3 deletions
Assets/Scripts/ScriptPatient1/ScreenP1Controller.cs
+
6
−
3
View file @
795972b0
...
@@ -3,7 +3,7 @@ using System.Collections.Generic;
...
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using
UnityEngine
;
using
UnityEngine
;
using
UnityEngine.InputSystem
;
using
UnityEngine.InputSystem
;
using
UnityEngine.UI
;
using
UnityEngine.UI
;
using
UnityEngine.SceneManagement
;
public
class
ScreenP1Controller
:
MonoBehaviour
public
class
ScreenP1Controller
:
MonoBehaviour
{
{
//Valable pour un seul patient : la mamie
//Valable pour un seul patient : la mamie
...
@@ -29,6 +29,8 @@ public class ScreenP1Controller : MonoBehaviour
...
@@ -29,6 +29,8 @@ public class ScreenP1Controller : MonoBehaviour
public
HealthBar_1
healthBar
;
public
HealthBar_1
healthBar
;
public
void
UpdateTasksToDo
()
public
void
UpdateTasksToDo
()
{
{
if
(
10.0f
<
chrono
&
chrono
<
11.0f
)
if
(
10.0f
<
chrono
&
chrono
<
11.0f
)
...
@@ -72,7 +74,7 @@ public class ScreenP1Controller : MonoBehaviour
...
@@ -72,7 +74,7 @@ public class ScreenP1Controller : MonoBehaviour
if
(
chrono
>
120.0f
&
textReanimation
.
enabled
==
true
)
if
(
chrono
>
120.0f
&
textReanimation
.
enabled
==
true
)
{
{
healthBar
.
Heal
(
0
);
healthBar
.
Heal
(
0
);
//mort du patient
SceneManager
.
LoadScene
(
"SceneGameOver"
);
}
}
...
@@ -112,7 +114,8 @@ public class ScreenP1Controller : MonoBehaviour
...
@@ -112,7 +114,8 @@ public class ScreenP1Controller : MonoBehaviour
if
(
chrono
>
458.0f
&
textPerfusion
.
enabled
==
true
)
if
(
chrono
>
458.0f
&
textPerfusion
.
enabled
==
true
)
{
{
healthBar
.
Heal
(
0
);
healthBar
.
Heal
(
0
);
//mort du patient
SceneManager
.
LoadScene
(
"SceneGameOver"
);
}
}
}
}
...
...
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