Fix double music on replay
This commit is contained in:
parent
ec7fec4874
commit
bea5554e59
@ -94,6 +94,7 @@ GameObject:
|
||||
m_Component:
|
||||
- component: {fileID: 4515361964050757684}
|
||||
- component: {fileID: 4515361964050757685}
|
||||
- component: {fileID: 1673962322}
|
||||
m_Layer: 0
|
||||
m_Name: GameController
|
||||
m_TagString: Untagged
|
||||
@ -135,6 +136,103 @@ MonoBehaviour:
|
||||
fadeSpeed: 2.5
|
||||
fadeImg: {fileID: 3902665078773332606}
|
||||
coinText: {fileID: 3994057406749197163}
|
||||
--- !u!82 &1673962322
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4515361964050757686}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 24300002, guid: de87b833901494b4c90efb705ec209f6,
|
||||
type: 2}
|
||||
m_audioClip: {fileID: 8300000, guid: ca051ddfd9879bb4783087293eb7e5a4, type: 3}
|
||||
m_PlayOnAwake: 1
|
||||
m_Volume: 0.436
|
||||
m_Pitch: 1
|
||||
Loop: 1
|
||||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 128
|
||||
DopplerLevel: 1
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
Pan2D: 0
|
||||
rolloffMode: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
rolloffCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
panLevelCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
spreadCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
reverbZoneMixCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!1 &5180033606312474289
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@ -1758,7 +1758,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1530935835}
|
||||
m_LocalRotation: {x: 0.03457181, y: -0.0000000021495121, z: 7.435697e-11, w: 0.9994022}
|
||||
m_LocalPosition: {x: -76.3, y: 25.78, z: -22.81}
|
||||
m_LocalPosition: {x: -76.1, y: 25.26, z: -22.81}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@ -2584,7 +2584,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2129712287}
|
||||
m_LocalRotation: {x: 0.03457181, y: -0.0000000021495121, z: 7.435697e-11, w: 0.9994022}
|
||||
m_LocalPosition: {x: -76.3, y: 25.78, z: -22.81}
|
||||
m_LocalPosition: {x: -76.1, y: 25.26, z: -22.81}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@ -3013,12 +3013,12 @@ PrefabInstance:
|
||||
- target: {fileID: 1772573266731274175, guid: 4dbf735f9da7b9f43b69f1577e4e5763,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -76.3
|
||||
value: -76.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1772573266731274175, guid: 4dbf735f9da7b9f43b69f1577e4e5763,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 19.6
|
||||
value: 19.08
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1772573266731274175, guid: 4dbf735f9da7b9f43b69f1577e4e5763,
|
||||
type: 3}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -33,10 +33,8 @@ public class GameController : MonoBehaviour
|
||||
SceneManager.activeSceneChanged += ChangedScene;
|
||||
coinText.text = "0";
|
||||
if(!SceneManager.GetActiveScene().name.Equals(mainScene) && !SceneManager.GetActiveScene().name.Equals(endScene)){
|
||||
Debug.Log(SceneManager.GetActiveScene().name);
|
||||
coinText.gameObject.SetActive(false);
|
||||
}else{
|
||||
Debug.Log(SceneManager.GetActiveScene().name);
|
||||
coinText.gameObject.SetActive(true);
|
||||
}
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user