Arreglo

parent b58275bb
Showing with 127 additions and 105 deletions
......@@ -348,7 +348,7 @@ PrefabInstance:
type: 3}
propertyPath: m_audioClip
value:
objectReference: {fileID: 0}
objectReference: {fileID: 8300000, guid: fe3f44e0bbc4be943802896e36ceaec1, type: 3}
- target: {fileID: 2114081506731414284, guid: 8e30a5e6158f5374184178db3778780b,
type: 3}
propertyPath: Loop
......
......@@ -483,7 +483,8 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedComponents:
- {fileID: 8228429523814113897, guid: c299a511f2a249142ac36667ddcf3b49, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: c299a511f2a249142ac36667ddcf3b49, type: 3}
--- !u!114 &512889790 stripped
MonoBehaviour:
......@@ -491,7 +492,7 @@ MonoBehaviour:
type: 3}
m_PrefabInstance: {fileID: 512889789}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_GameObject: {fileID: 1877790790}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 94ed2c62992ea584eb669871b1668a3c, type: 3}
......@@ -1344,6 +1345,24 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1756978295}
m_CullTransparentMesh: 0
--- !u!1 &1877790790 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7736364748447018738, guid: c299a511f2a249142ac36667ddcf3b49,
type: 3}
m_PrefabInstance: {fileID: 512889789}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1877790791
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1877790790}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 379826b7faee1344895a77dab75ab357, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1958144520
GameObject:
m_ObjectHideFlags: 0
......
......@@ -7,19 +7,20 @@ public class CambioCancion : MonoBehaviour
{
private void Awake()
{
}
// Start is called before the first frame update
void Start()
{
if (SceneManager.GetActiveScene().name == "SampleScene")
{
Musica.CancionNivel1();
}else if(SceneManager.GetActiveScene().name == "SampleScene")
}
else if (SceneManager.GetActiveScene().name == "SampleScene")
{
Musica.CancionMenuInicial();
}
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
......
......@@ -8,6 +8,7 @@ public class Musica : MonoBehaviour
{
//https://answers.unity.com/questions/1041174/help-playing-audio-depending-on-scene.html
//https://www.youtube.com/watch?v=3mK5dD9XH_U
public static Musica musica;
private void Awake()
......@@ -18,7 +19,8 @@ public class Musica : MonoBehaviour
{
musica = this;
DontDestroyOnLoad(gameObject);
}else if (musica != null)
}
else if (musica != null)
{
Destroy(gameObject);
}
......@@ -28,10 +30,7 @@ public class Musica : MonoBehaviour
if (SceneManager.GetActiveScene().name == "MenuInicial")
{
Debug.Log("si");
audio.clip = Resources.Load("Musica/Juego/MusicTales_MenuInicial") as AudioClip;
Debug.Log(audio.clip.name);
audio.Play();
CancionMenuInicial();
}
else if (SceneManager.GetActiveScene().name == "SampleScene")
{
......@@ -39,7 +38,6 @@ public class Musica : MonoBehaviour
audio.Play();
}
}
// Start is called before the first frame update
......@@ -51,14 +49,14 @@ public class Musica : MonoBehaviour
// Update is called once per frame
void Update()
{
}
//Declaramos como estático para poder llamar desde otros scripts.
public static void CancionNivel1()
{
//Cambiamos el audio y ajustamos el volumen.
AudioSource audio = musica.GetComponent<AudioSource>();
AudioSource audio = musica.GetComponent<AudioSource>();
audio.clip = Resources.Load("Musica/Juego/MusicTales_Nivel1") as AudioClip;
audio.volume = 0.2f;
......@@ -68,13 +66,17 @@ public class Musica : MonoBehaviour
public static void CancionMenuInicial()
{
//Cambiamos el audio y ajustamos el volumen.
AudioSource audio = musica.GetComponent<AudioSource>();
audio.clip = Resources.Load("Musica/Juego/MusicTales_MenuInicial") as AudioClip;
audio.volume = 0.2f;
if (!audio.clip.name.Equals("MusicTales_MenuInicial"))
{
audio.clip = Resources.Load("Musica/Juego/MusicTales_MenuInicial") as AudioClip;
audio.volume = 1;
audio.Play();
audio.Play();
}
}
......
......@@ -16,12 +16,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 43
width: 1920
height: 997
width: 1366
height: 685
m_ShowMode: 4
m_Title:
m_RootView: {fileID: 6}
m_MinSize: {x: 950, y: 394}
m_MinSize: {x: 950, y: 544}
m_MaxSize: {x: 10000, y: 10000}
--- !u!114 &2
MonoBehaviour:
......@@ -42,12 +42,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 30
width: 1920
height: 947
m_MinSize: {x: 683, y: 344}
m_MaxSize: {x: 12008, y: 8044}
width: 1366
height: 635
m_MinSize: {x: 679, y: 494}
m_MaxSize: {x: 14002, y: 14044}
vertical: 0
controlID: 53
controlID: 91
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -63,12 +63,12 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 1616
x: 1089
y: 0
width: 304
height: 947
m_MinSize: {x: 277, y: 72}
m_MaxSize: {x: 4002, y: 4022}
width: 277
height: 635
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 14}
m_Panes:
- {fileID: 14}
......@@ -91,8 +91,8 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 215
height: 675
width: 202
height: 363
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 15}
......@@ -116,18 +116,18 @@ MonoBehaviour:
m_Position:
serializedVersion: 2
x: 0
y: 675
width: 1616
y: 363
width: 1089
height: 272
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 18}
m_MinSize: {x: 232, y: 272}
m_MaxSize: {x: 10002, y: 10022}
m_ActualView: {fileID: 13}
m_Panes:
- {fileID: 13}
- {fileID: 18}
- {fileID: 12}
m_Selected: 1
m_LastSelected: 0
m_Selected: 0
m_LastSelected: 1
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -148,8 +148,8 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1920
height: 997
width: 1366
height: 685
m_MinSize: {x: 950, y: 300}
m_MaxSize: {x: 10000, y: 10000}
--- !u!114 &7
......@@ -169,7 +169,7 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1920
width: 1366
height: 30
m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0}
......@@ -190,8 +190,8 @@ MonoBehaviour:
m_Position:
serializedVersion: 2
x: 0
y: 977
width: 1920
y: 665
width: 1366
height: 20
m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0}
......@@ -214,12 +214,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1616
height: 947
m_MinSize: {x: 406, y: 344}
m_MaxSize: {x: 8006, y: 8044}
width: 1089
height: 635
m_MinSize: {x: 404, y: 494}
m_MaxSize: {x: 10002, y: 14044}
vertical: 1
controlID: 54
controlID: 32
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -239,12 +239,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1616
height: 675
m_MinSize: {x: 406, y: 222}
m_MaxSize: {x: 8006, y: 4022}
width: 1089
height: 363
m_MinSize: {x: 404, y: 222}
m_MaxSize: {x: 8004, y: 4022}
vertical: 0
controlID: 55
controlID: 33
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -260,10 +260,10 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 215
x: 202
y: 0
width: 1401
height: 675
width: 887
height: 363
m_MinSize: {x: 204, y: 222}
m_MaxSize: {x: 4004, y: 4022}
m_ActualView: {fileID: 16}
......@@ -323,8 +323,8 @@ MonoBehaviour:
m_Pos:
serializedVersion: 2
x: 0
y: 748
width: 1616
y: 436
width: 1089
height: 253
m_ViewDataDictionary: {fileID: 0}
m_SearchFilter:
......@@ -345,14 +345,14 @@ MonoBehaviour:
m_LastFolders:
- Assets/Scenes
m_LastFoldersGridSize: -1
m_LastProjectPath: C:\Users\Colme\Documents\UnityProjects\ProyectoVideojuegos\Videojuegos_Proyecto
m_LastProjectPath: C:\Users\alvmo\Documents\NetBeansProjects\DesarrolloDeVideojuegos_Proyecto\Videojuegos_Proyecto
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 79}
m_SelectedIDs: 962d0000
m_LastClickedID: 11670
m_ExpandedIDs: 00000000b22c0000123600004036000000ca9a3b
scrollPos: {x: 0, y: 23}
m_SelectedIDs: 2c2e0000
m_LastClickedID: 11820
m_ExpandedIDs: 000000004c2d0000a836000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -380,7 +380,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000b22c000012360000
m_ExpandedIDs: 000000004c2d0000a8360000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -405,8 +405,8 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_ListAreaState:
m_SelectedInstanceIDs: 5a350000
m_LastClickedInstanceID: 13658
m_SelectedInstanceIDs:
m_LastClickedInstanceID: 0
m_HadKeyboardFocusLastEvent: 1
m_ExpandedInstanceIDs: c6230000a83200001c2c0000462b00004afc0000a23500000000000010d50200
m_RenameOverlay:
......@@ -456,10 +456,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1616
x: 1089
y: 73
width: 302
height: 928
width: 275
height: 616
m_ViewDataDictionary: {fileID: 0}
m_OpenAddComponentMenu: 0
m_ObjectsLockedBeforeSerialization: []
......@@ -494,29 +494,29 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 73
width: 215
height: 656
width: 202
height: 344
m_ViewDataDictionary: {fileID: 0}
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 5a350000
m_LastClickedID: 0
m_ExpandedIDs: 2e1cfbffaa42fbffdabbfbff0abdfbfffcbefbffc4c0fbffcec1fbffe822fcff8c24fcffbae5fcff44e6fcffa245fdff24a6fdff8605fefff639fefffc66feff4e2affffd28effff80cbffff88f8ffff94f9ffff9640000010d30200
m_SelectedIDs: 4ed2fcff
m_LastClickedID: -208306
m_ExpandedIDs: 54d2fcff6492fdff8eb2feff5ef8fffff4ffffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name: DisparoCorchea0
m_OriginalName: DisparoCorchea0
m_Name:
m_OriginalName:
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: -310622
m_UserData: 0
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 0
m_ClientGUIView: {fileID: 4}
m_SearchString:
......@@ -547,10 +547,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 215
x: 202
y: 73
width: 1399
height: 656
width: 885
height: 344
m_ViewDataDictionary: {fileID: 0}
m_ShowContextualTools: 0
m_WindowGUID: de700f5d540e3c347973605f7564e740
......@@ -645,10 +645,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 215
x: 202
y: 73
width: 1399
height: 656
width: 885
height: 344
m_ViewDataDictionary: {fileID: 0}
m_VSyncEnabled: 0
m_MaximizeOnPlay: 0
......@@ -661,10 +661,10 @@ MonoBehaviour:
m_VRangeLocked: 0
hZoomLockedByDefault: 0
vZoomLockedByDefault: 0
m_HBaseRangeMin: -699.5
m_HBaseRangeMax: 699.5
m_VBaseRangeMin: -319.5
m_VBaseRangeMax: 319.5
m_HBaseRangeMin: -442.5
m_HBaseRangeMax: 442.5
m_VBaseRangeMin: -163.5
m_VBaseRangeMax: 163.5
m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1
......@@ -682,25 +682,25 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 17
width: 1399
height: 639
width: 885
height: 327
m_Scale: {x: 1, y: 1}
m_Translation: {x: 699.5, y: 319.5}
m_Translation: {x: 442.5, y: 163.5}
m_MarginLeft: 0
m_MarginRight: 0
m_MarginTop: 0
m_MarginBottom: 0
m_LastShownAreaInsideMargins:
serializedVersion: 2
x: -699.5
y: -319.5
width: 1399
height: 639
x: -442.5
y: -163.5
width: 885
height: 327
m_MinimalGUI: 1
m_defaultScale: 1
m_TargetTexture: {fileID: 0}
m_CurrentColorSpace: 0
m_LastWindowPixelSize: {x: 1399, y: 656}
m_LastWindowPixelSize: {x: 885, y: 344}
m_ClearInEditMode: 1
m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 01000000000000000000
......@@ -727,7 +727,7 @@ MonoBehaviour:
m_Pos:
serializedVersion: 2
x: 0
y: 748
width: 1616
height: 253
y: 526
width: 1089
height: 163
m_ViewDataDictionary: {fileID: 0}
sceneSetups:
- path: Assets/Scenes/MenuInicial.unity
- path: Assets/Scenes/SeleccionNivel.unity
isLoaded: 1
isActive: 1
isSubScene: 0
Base path: C:/Program Files/Unity/Hub/Editor/2019.1.11f1/Editor/Data
Base path: C:/Program Files/Unity/Editor/Data
Cmd: initializeCompiler
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