Commit 00b0abfa authored by radow's avatar radow
Browse files

added portal sound

parent c8710d30
......@@ -19408,6 +19408,7 @@ GameObject:
- component: {fileID: 6217896729396639443}
- component: {fileID: 8191660042461577753}
- component: {fileID: 7687190570594247629}
- component: {fileID: 2424163293829289807}
m_Layer: 0
m_Name: Portal
m_TagString: Untagged
......@@ -19498,7 +19499,104 @@ MonoBehaviour:
arrivalAnchor: {fileID: 6355783548793373196}
associatedPortal: {fileID: 0}
refillStepsOnArrival: 0
auds: {fileID: 2424163293829289807}
active: 1
--- !u!82 &2424163293829289807
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7687190570594247628}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 5e75506e9fdb7b84dbd8c07edcf55ff6, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
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 &9104354187176085414
GameObject:
m_ObjectHideFlags: 0
......
......@@ -215,7 +215,7 @@ RectTransform:
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 588208976}
- {fileID: 1041140521}
- {fileID: 946264407}
- {fileID: 1886660134}
m_Father: {fileID: 0}
m_RootOrder: 1
......@@ -2087,7 +2087,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 171657268}
m_LocalRotation: {x: 0.052391913, y: -0, z: -0, w: 0.99862665}
m_LocalPosition: {x: 0, y: 6, z: -12}
m_LocalPosition: {x: -0.45, y: 6, z: -12}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
......@@ -3492,6 +3492,7 @@ Transform:
- {fileID: 1483515519}
- {fileID: 500445728}
- {fileID: 1948962347}
- {fileID: 1967682324}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -9274,13 +9275,14 @@ RectTransform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1041140521}
m_RootOrder: 0
m_Children:
- {fileID: 1041140521}
m_Father: {fileID: 2648421}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -376.90002, y: 152.29993}
m_AnchoredPosition: {x: -699.9, y: 460.29993}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &946264408
......@@ -9303,7 +9305,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Dungeon '
m_text: Dungeon
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 0b8f44acda03b81469f72ea543babffb, type: 2}
m_sharedMaterial: {fileID: 4644700552236062496, guid: 0b8f44acda03b81469f72ea543babffb, type: 2}
......@@ -10597,17 +10599,16 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1041140520}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 946264407}
m_Father: {fileID: 2648421}
m_RootOrder: 1
m_Children: []
m_Father: {fileID: 946264407}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -323, y: 308}
m_AnchoredPosition: {x: 469, y: -152.29993}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1041140522
......@@ -10630,7 +10631,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: ' Looper'
m_text: Break
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: bb4ec978146f75348a11cf2c384b60bf, type: 2}
m_sharedMaterial: {fileID: 4644700552236062496, guid: bb4ec978146f75348a11cf2c384b60bf, type: 2}
......@@ -18432,7 +18433,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 21, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &1887677869
......@@ -19244,6 +19245,68 @@ Transform:
m_CorrespondingSourceObject: {fileID: 2462338283760437699, guid: 4d478efeeb9ee8c47b8e7051c9447071, type: 3}
m_PrefabInstance: {fileID: 1964501192}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1967682323
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 293018160}
m_Modifications:
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalPosition.x
value: 3.6
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalPosition.y
value: -6.3933153
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalPosition.z
value: 34.273453
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalRotation.x
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_RootOrder
value: 49
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3144065643027212105, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
propertyPath: m_Name
value: Torch-standing (1)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
--- !u!4 &1967682324 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2371751755224841715, guid: f5ce3ecff7e4c4245bbf75ae0c001c1c, type: 3}
m_PrefabInstance: {fileID: 1967682323}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1967815831
PrefabInstance:
m_ObjectHideFlags: 0
......
......@@ -18,6 +18,7 @@ public class Gate : Block
private new void Start()
{
auds.volume *= SettingsData.effectsVolume;
base.Start();
SwitchState(open);
}
......
......@@ -17,6 +17,7 @@ public class Instable : Block
private new void Start()
{
auds.volume *= SettingsData.effectsVolume;
traversable = true;
base.Start();
originalPos = transform.position;
......
......@@ -30,6 +30,7 @@ public class Player : MonoBehaviour
originalRotation = transform.rotation;
originalPostition = transform.position;
UIManager.instance.stepcounter.text = "" + (steplimit - steps);
auds.volume *= SettingsData.effectsVolume;
}
private void Update()
......
......@@ -8,11 +8,13 @@ public class Portal : Block
public Transform arrivalAnchor;
public Portal associatedPortal;
public bool refillStepsOnArrival;
public AudioSource auds;
public bool active = true;
private new void Start()
{
auds.volume *= SettingsData.effectsVolume;
traversable = true;
base.Start();
SetEffects(active);
......@@ -27,6 +29,7 @@ public class Portal : Block
Player.instance.position = GridManager.instance.GetGridPositionByRealPosition(Player.instance.transform.position);
if (associatedPortal.refillStepsOnArrival) Player.instance.steps = 0;
UIManager.instance.stepcounter.text = "" + (Player.instance.steplimit - Player.instance.steps);
auds.Play();
}
public void Swap()
......
fileFormatVersion: 2
guid: 5e75506e9fdb7b84dbd8c07edcf55ff6
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:
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 to comment