Skip to content
Snippets Groups Projects
Commit 8cd95089 authored by Juliette Marx's avatar Juliette Marx
Browse files

modif couleur

parent 74b27994
No related branches found
No related tags found
No related merge requests found
Assets/Couleur/Cyan.PNG

4.19 KiB

fileFormatVersion: 2
guid: 1907ade29abe3394f8efeabdf56ae2cc
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
......@@ -9,13 +9,12 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: Ampoule_Mat
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
......@@ -60,19 +59,19 @@ Material:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 3
- _Mode: 0
- _OcclusionStrength: 0.105
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 0.15294118}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
......@@ -1253,6 +1253,10 @@ PrefabInstance:
propertyPath: m_LocalScale.z
value: 10
objectReference: {fileID: 0}
- target: {fileID: 2300000, guid: f9ae4525a6669984188652fe9f6d34ce, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: a5673b7f2b116c64ab5f6dfbf8ec88d4, type: 2}
- target: {fileID: 6400000, guid: f9ae4525a6669984188652fe9f6d34ce, type: 3}
propertyPath: m_Convex
value: 1
......@@ -3289,6 +3293,10 @@ PrefabInstance:
propertyPath: m_LocalScale.z
value: 10
objectReference: {fileID: 0}
- target: {fileID: 2300000, guid: e177f1a19cdb204409559bb0b462bb0e, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: a5673b7f2b116c64ab5f6dfbf8ec88d4, type: 2}
- target: {fileID: 6400000, guid: e177f1a19cdb204409559bb0b462bb0e, type: 3}
propertyPath: m_Convex
value: 1
......@@ -5371,6 +5379,10 @@ PrefabInstance:
propertyPath: m_LocalScale.z
value: 10
objectReference: {fileID: 0}
- target: {fileID: 2300000, guid: a13ff3fd36bab714d92e57f025cb369a, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: a5673b7f2b116c64ab5f6dfbf8ec88d4, type: 2}
- target: {fileID: 6400000, guid: a13ff3fd36bab714d92e57f025cb369a, type: 3}
propertyPath: m_Convex
value: 1
......@@ -6620,6 +6632,10 @@ PrefabInstance:
propertyPath: m_LocalScale.z
value: 10
objectReference: {fileID: 0}
- target: {fileID: 2300000, guid: e177f1a19cdb204409559bb0b462bb0e, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: a5673b7f2b116c64ab5f6dfbf8ec88d4, type: 2}
- target: {fileID: 6400000, guid: e177f1a19cdb204409559bb0b462bb0e, type: 3}
propertyPath: m_Convex
value: 1
......@@ -9241,6 +9257,7 @@ MonoBehaviour:
foodMamie: {fileID: 1988139551}
rouge: {fileID: 2800000, guid: 7debf8cc81f18fd40ba1d28f9b182271, type: 3}
blanc: {fileID: 2800000, guid: 095b15ed22634174ebbd31ac65c15f02, type: 3}
marron: {fileID: 2800000, guid: f86e5e5a6eb1f634fb4b683ef90b877c, type: 3}
healthBar: {fileID: 1103176265}
--- !u!1001 &1248610504
PrefabInstance:
......@@ -10738,7 +10755,9 @@ MonoBehaviour:
chrono: 0
homme: {fileID: 655797264}
healthBar: {fileID: 1249204169}
rouge: {fileID: 0}
rouge: {fileID: 2800000, guid: 7debf8cc81f18fd40ba1d28f9b182271, type: 3}
blanc: {fileID: 2800000, guid: 095b15ed22634174ebbd31ac65c15f02, type: 3}
marron: {fileID: 2800000, guid: f86e5e5a6eb1f634fb4b683ef90b877c, type: 3}
--- !u!1001 &1347544157
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -12311,6 +12330,10 @@ MonoBehaviour:
chrono: 0
femme: {fileID: 2136404302}
healthBar: {fileID: 1486346269}
rouge: {fileID: 2800000, guid: 7debf8cc81f18fd40ba1d28f9b182271, type: 3}
blanc: {fileID: 2800000, guid: 095b15ed22634174ebbd31ac65c15f02, type: 3}
marron: {fileID: 2800000, guid: f86e5e5a6eb1f634fb4b683ef90b877c, type: 3}
cyan: {fileID: 2800000, guid: 1907ade29abe3394f8efeabdf56ae2cc, type: 3}
--- !u!1 &1593648113
GameObject:
m_ObjectHideFlags: 0
......@@ -16802,7 +16825,6 @@ MonoBehaviour:
textNourriture: {fileID: 1527800214}
textReanimation: {fileID: 386774413}
healthBar: {fileID: 1103176265}
blanc: {fileID: 2800000, guid: 095b15ed22634174ebbd31ac65c15f02, type: 3}
--- !u!4 &2134402357 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: 46cfc0f959f2d7248bee5e26603ad320,
......
......@@ -20,7 +20,6 @@ public class IsOnContactMamie : MonoBehaviour
public HealthBar_1 healthBar;
public Texture blanc;
public void OnTriggerStay(Collider other)
......@@ -33,40 +32,33 @@ public class IsOnContactMamie : MonoBehaviour
{
textPiqure.enabled = false;
healthBar.Heal(100);
gameObject.GetComponent<Renderer>().material.mainTexture = blanc;
}
}
if (other.gameObject.name == "Perfusion_Mamie")
{
chronoPerfusion += Time.deltaTime;
gameObject.GetComponent<MeshRenderer>().material.color = Color.yellow;
if (chronoPerfusion >= 5.0f)
{
textPerfusion.enabled = false;
healthBar.Heal(100);
gameObject.GetComponent<MeshRenderer>().material.color = Color.green;
}
}
if (other.gameObject.name == "Food_mamie")
{
chronoNourriture += Time.deltaTime;
gameObject.GetComponent<MeshRenderer>().material.color = Color.yellow;
if (chronoNourriture >= 5.0f)
{
textNourriture.enabled = false;
healthBar.Heal(100);
gameObject.GetComponent<MeshRenderer>().material.color = Color.green;
}
}
if(other.gameObject.name == "Reanimer_Mamie")
{
chronoReanimation += Time.deltaTime;
gameObject.GetComponent<MeshRenderer>().material.color = Color.yellow;
if (chronoReanimation >= 5.0f)
{
textReanimation.enabled = false;
healthBar.Heal(100);
gameObject.GetComponent<MeshRenderer>().material.color = Color.green;
}
}
......@@ -75,9 +67,6 @@ public class IsOnContactMamie : MonoBehaviour
public void OnTriggerExit(Collider other)
{
gameObject.GetComponent<MeshRenderer>().material.color = new Color(0, 0, 0, 0);
chronoPiqure = 0.0f;
chronoPerfusion = 0.0f;
chronoNourriture = 0.0f;
......
......@@ -30,6 +30,8 @@ public class ScreenP2Controller : MonoBehaviour
public HealthBar_2 healthBar;
public Texture rouge;
public Texture blanc;
public Texture marron;
public void UpdateTasksToDo()
{
......@@ -39,32 +41,56 @@ public class ScreenP2Controller : MonoBehaviour
healthBar.Heal(80);
thermometreHomme.GetComponent<Renderer>().material.mainTexture = rouge;
textTemperature.enabled = true;
}
if(textTemperature.enabled == false)
{
thermometreHomme.GetComponent<Renderer>().material.mainTexture = marron;
}
if (chrono > 90.0f & chrono < 91.0f & textTemperature.enabled == true)
{
healthBar.Heal(60);
textTemperature.enabled = false;
textMedicament.enabled = true;
medicamentHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textMedicament.enabled == false)
{
medicamentHomme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if (chrono > 120.0f & chrono < 121.0f & textMedicament.enabled == true)
{
healthBar.Heal(40);
textMedicament.enabled = false;
textPerfusion.enabled = true;
perfusionHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textPerfusion.enabled == false)
{
perfusionHomme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if (chrono > 150.0f & chrono < 151.0f & textPerfusion.enabled == true)
{
healthBar.Heal(20);
textPerfusion.enabled = false;
textReanimation.enabled = true;
reanimerHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textReanimation.enabled == false)
{
reanimerHomme.GetComponent<Renderer>().material.mainTexture = marron;
}
if (chrono > 170.0f & textReanimation == true)
{
healthBar.Heal(0);
reanimerHomme.GetComponent<Renderer>().material.mainTexture = marron;
//mort du patient car jauge de vie =0
}
......@@ -78,30 +104,54 @@ public class ScreenP2Controller : MonoBehaviour
if (chrono > 235.0f & chrono < 236.0f)
{
healthBar.Heal(80);
homme.GetComponent<MeshRenderer>().material.color = Color.red;
textPansement.enabled = true;
pansementHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textPansement.enabled == false)
{
pansementHomme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if (chrono > 265.0f & chrono < 266.0f & textPansement.enabled == true)
{
healthBar.Heal(60);
textPansement.enabled = false;
textMedicament.enabled = true;
medicamentHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textMedicament.enabled == false)
{
medicamentHomme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if (chrono > 295.0f & chrono < 296.0f & textMedicament.enabled == true)
{
healthBar.Heal(40);
textMedicament.enabled = false;
textTemperature.enabled = true;
thermometreHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textTemperature.enabled == false)
{
thermometreHomme.GetComponent<Renderer>().material.mainTexture = marron;
}
if (chrono > 325.0f & chrono < 326.0f & textTemperature.enabled == true)
{
healthBar.Heal(20);
textTemperature.enabled = false;
textReanimation.enabled = true;
reanimerHomme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textReanimation.enabled == false)
{
reanimerHomme.GetComponent<Renderer>().material.mainTexture = marron;
}
if (chrono > 360.0f & textReanimation.enabled == true)
{
healthBar.Heal(0);
......@@ -115,7 +165,6 @@ public class ScreenP2Controller : MonoBehaviour
if (chrono > 360.0f & chrono < 361.0f)
{
healthBar.Heal(50);
homme.GetComponent<MeshRenderer>().material.color = Color.red;
textNourriture.enabled = true;
}
......
......@@ -27,19 +27,29 @@ public class ScreenP3Controller : MonoBehaviour
public Healthbar_3 healthBar;
public Texture rouge;
public Texture blanc;
public Texture marron;
public Texture cyan;
public void UpdateTasksToDo()
{
//Première série de tâches
if(chrono > 180.0f & chrono < 181.0f)
{
healthBar.Heal(60);
femme.GetComponent<MeshRenderer>().material.color = Color.red;
servietteFemme.GetComponent<Renderer>().material.mainTexture = rouge;
textToilette.enabled = true;
}
if(textToilette.enabled == false)
{
servietteFemme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if(chrono > 220.0f & chrono < 221.0f)
{
healthBar.Heal(30);
femme.GetComponent<MeshRenderer>().material.color = Color.red;
textNourriture.enabled = true;
}
......@@ -52,14 +62,25 @@ public class ScreenP3Controller : MonoBehaviour
if(chrono > 265.0f & chrono < 366.0f)
{
healthBar.Heal(60);
femme.GetComponent<MeshRenderer>().material.color = Color.red;
tensionFemme.GetComponent<Renderer>().material.mainTexture = rouge;
textTension.enabled = true;
}
if(textTension.enabled == false)
{
tensionFemme.GetComponent<Renderer>().material.mainTexture = cyan;
}
if (chrono > 290.0f & chrono < 291.0f & textTension.enabled == true)
{
healthBar.Heal(30);
textTension.enabled = false;
textTemperature.enabled = true;
thermometreFemme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textTemperature.enabled == false)
{
thermometreFemme.GetComponent<Renderer>().material.mainTexture = blanc;
}
......@@ -72,27 +93,46 @@ public class ScreenP3Controller : MonoBehaviour
if (chrono > 300.0f & chrono < 301.0f)
{
healthBar.Heal(75);
femme.GetComponent<MeshRenderer>().material.color = Color.red;
pansementFemme.GetComponent<Renderer>().material.mainTexture = rouge;
textPansement.enabled = true;
}
if(textPansement.enabled == false)
{
pansementFemme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if(chrono > 330.0f & chrono < 331.0f & textPansement.enabled == true)
{
healthBar.Heal(50);
textPansement.enabled = false;
textMedicament.enabled = true;
medicamentFemme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if(textMedicament.enabled == false)
{
medicamentFemme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if (chrono > 360.0f & chrono < 361.0f & textMedicament.enabled == true)
{
healthBar.Heal(25);
textMedicament.enabled = false;
textTemperature.enabled = true;
thermometreFemme.GetComponent<Renderer>().material.mainTexture = rouge;
}
if (textTemperature.enabled == false)
{
thermometreFemme.GetComponent<Renderer>().material.mainTexture = blanc;
}
if (chrono > 390.0f & textTemperature.enabled == true)
{
healthBar.Heal(0);
thermometreFemme.GetComponent<Renderer>().material.mainTexture = blanc;
//Mort du patient car jauge de vie nulle
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment