Panel con controles en nivel

parent 8a6476c0
fileFormatVersion: 2
fileFormatVersion: 2
guid: d4c25b470d122fe43b70f584450e54b7
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
......@@ -75,12 +75,18 @@ public class Jugador : MonoBehaviour
void Dañado()
{
if (vidas > 1)
{
//Si el jugador es dañado se baja una vida y se le da un tiempo de invulnerabilidad
vidas--;
tInvulnerable = 1.5f;
Debug.Log("Vida actual: " + vidas + "/3");
Debug.Log("Vida actual: " + vidas + "/3");
//Efecto de sonido de muerte de pajaro
AudioSource audio = GameObject.Find("Efectos").GetComponent<AudioSource>();
AudioClip clip = Resources.Load("Musica/EfectosSonido/daño") as AudioClip;
audio.PlayOneShot(clip, 0.2f);
}
else
{
......
......@@ -47,7 +47,7 @@ MonoBehaviour:
m_MinSize: {x: 683, y: 494}
m_MaxSize: {x: 14004, y: 14044}
vertical: 0
controlID: 58
controlID: 121
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -219,7 +219,7 @@ MonoBehaviour:
m_MinSize: {x: 406, y: 494}
m_MaxSize: {x: 10002, y: 14044}
vertical: 1
controlID: 59
controlID: 54
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -244,7 +244,7 @@ MonoBehaviour:
m_MinSize: {x: 406, y: 222}
m_MaxSize: {x: 8006, y: 4022}
vertical: 0
controlID: 60
controlID: 55
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -300,7 +300,7 @@ MonoBehaviour:
m_ViewDataDictionary: {fileID: 0}
m_LockTracker:
m_IsLocked: 0
m_LastSelectedObjectID: -28596
m_LastSelectedObjectID: -27992
--- !u!114 &13
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -349,10 +349,10 @@ MonoBehaviour:
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 42}
m_SelectedIDs: 6e2b0000
m_LastClickedID: 11118
m_ExpandedIDs: 00000000862a0000f83300007c3400005435000000ca9a3b
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 882b0000
m_LastClickedID: 11144
m_ExpandedIDs: 00000000a02a0000163400009c3400007435000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -380,7 +380,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000862a0000f83300007c340000
m_ExpandedIDs: 00000000a02a00001634000074350000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -500,9 +500,9 @@ MonoBehaviour:
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 38330000
m_SelectedIDs: 54330000
m_LastClickedID: 0
m_ExpandedIDs: 1872f8ffc8e1f8ff3289faff3c6dfdffa2d6fdffa240feff9cb2feffb08affff02f9ffff8cfbfffff4ffffffea96010090990100
m_ExpandedIDs: 4079ffff4c8effff508effff528effff2491ffff2891ffff78faffff0cfbffff923f0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -562,9 +562,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 49.474472, y: 10.983011, z: -0.1000061}
m_Target: {x: 673.0263, y: 345.62515, z: -73.0625}
speed: 2
m_Value: {x: 49.474472, y: 10.983011, z: -0.1000061}
m_Value: {x: 673.0263, y: 345.62515, z: -73.0625}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
......@@ -597,9 +597,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 62.71813
m_Target: 480.20032
speed: 2
m_Value: 62.71813
m_Value: 480.20032
m_Ortho:
m_Target: 1
speed: 2
......
{"cameraMode":{"drawMode":0,"name":"Shaded","section":"Shading Mode"},"sceneLighting":true,"audioPlay":false,"sceneViewState":{"showFog":true,"showMaterialUpdate":false,"showSkybox":true,"showFlares":true,"showImageEffects":true,"showParticleSystems":true},"in2DMode":true,"pivot":{"x":49.47447204589844,"y":10.983011245727539,"z":-0.100006103515625},"rotation":{"x":0.0,"y":0.0,"z":0.0,"w":1.0},"size":62.7181282043457,"orthographic":true}
\ No newline at end of file
{"cameraMode":{"drawMode":0,"name":"Shaded","section":"Shading Mode"},"sceneLighting":true,"audioPlay":false,"sceneViewState":{"showFog":true,"showMaterialUpdate":false,"showSkybox":true,"showFlares":true,"showImageEffects":true,"showParticleSystems":true},"in2DMode":true,"pivot":{"x":673.0263061523438,"y":345.6251525878906,"z":-73.0625},"rotation":{"x":0.0,"y":0.0,"z":0.0,"w":1.0},"size":480.2003173828125,"orthographic":true}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment