Commit 06934bbe authored by saad's avatar saad

add intial sfx

parent 3e5ecaa7
...@@ -164,12 +164,12 @@ MonoBehaviour: ...@@ -164,12 +164,12 @@ MonoBehaviour:
canvasPrefab: {fileID: 2585760038227158915, guid: fd21b1c9ba9d25149abdab1b66405023, type: 3} canvasPrefab: {fileID: 2585760038227158915, guid: fd21b1c9ba9d25149abdab1b66405023, type: 3}
sfxCorrect: {fileID: 8300000, guid: 6ebbdbecd03ddaa109a6d3ac5749c01a, type: 3} sfxCorrect: {fileID: 8300000, guid: 6ebbdbecd03ddaa109a6d3ac5749c01a, type: 3}
sfxWrong: {fileID: 8300000, guid: f28bc95b0eb4d15169412171b5f884ec, type: 3} sfxWrong: {fileID: 8300000, guid: f28bc95b0eb4d15169412171b5f884ec, type: 3}
sfxClick: {fileID: 0} sfxClick: {fileID: 8300000, guid: 6f0b59c15f55cf15d9156d7f012c2e4f, type: 3}
sfxVictory: {fileID: 8300000, guid: f1c349455633412cab4c20e58cd97d41, type: 3} sfxVictory: {fileID: 8300000, guid: f1c349455633412cab4c20e58cd97d41, type: 3}
sfxDefeat: {fileID: 8300000, guid: 6948bdad23e0a0b75953515c5feb5323, type: 3} sfxDefeat: {fileID: 8300000, guid: 6948bdad23e0a0b75953515c5feb5323, type: 3}
sfxWhoosh: {fileID: 0} sfxWhoosh: {fileID: 8300000, guid: 6f0b59c15f55cf15d9156d7f012c2e4f, type: 3}
sfxPop: {fileID: 0} sfxPop: {fileID: 8300000, guid: 6f0b59c15f55cf15d9156d7f012c2e4f, type: 3}
sfxSlam: {fileID: 0} sfxSlam: {fileID: 8300000, guid: c0e0d2f315c14608eb08741fe5f55a1d, type: 3}
correctBurstParticle: {fileID: 4938095755617958530, guid: f7cbea08757184fa8a51c08635e337d9, type: 3} correctBurstParticle: {fileID: 4938095755617958530, guid: f7cbea08757184fa8a51c08635e337d9, type: 3}
wrongBurstParticle: {fileID: 0} wrongBurstParticle: {fileID: 0}
confettiParticle: {fileID: 7700351054645336762, guid: db152584ef6bbce41b069ba251c900ad, type: 3} confettiParticle: {fileID: 7700351054645336762, guid: db152584ef6bbce41b069ba251c900ad, type: 3}
...@@ -182,6 +182,8 @@ MonoBehaviour: ...@@ -182,6 +182,8 @@ MonoBehaviour:
classCode: classCode:
stepsToWin: 5 stepsToWin: 5
stepDistance: 3 stepDistance: 3
music: {fileID: 0}
tickingLoop: {fileID: 0}
useOfflineTestData: 0 useOfflineTestData: 0
--- !u!4 &1185597005 --- !u!4 &1185597005
Transform: Transform:
......
...@@ -32,6 +32,7 @@ namespace com.al_arcade.shared ...@@ -32,6 +32,7 @@ namespace com.al_arcade.shared
private List<AudioSource> _pool = new List<AudioSource>(); private List<AudioSource> _pool = new List<AudioSource>();
private int _poolIndex = 0; private int _poolIndex = 0;
public AudioSource musicSource;
private void Awake() private void Awake()
{ {
......
...@@ -87,6 +87,10 @@ namespace com.al_arcade.tf ...@@ -87,6 +87,10 @@ namespace com.al_arcade.tf
[SerializeField] private string classCode = ""; [SerializeField] private string classCode = "";
[SerializeField] private int stepsToWin = 5; [SerializeField] private int stepsToWin = 5;
[SerializeField] private float stepDistance = 3f; [SerializeField] private float stepDistance = 3f;
[Header("Music")]
[SerializeField] private AudioClip music;
[SerializeField] private AudioClip tickingLoop;
[Header("Debug")] [Header("Debug")]
[SerializeField] private bool useOfflineTestData = false; [SerializeField] private bool useOfflineTestData = false;
...@@ -97,7 +101,6 @@ namespace com.al_arcade.tf ...@@ -97,7 +101,6 @@ namespace com.al_arcade.tf
private TfProductionLine _productionLine; private TfProductionLine _productionLine;
private TfQuestionScreen _questionScreen; private TfQuestionScreen _questionScreen;
private TfUIManager _uiManager; private TfUIManager _uiManager;
private void Start() private void Start()
{ {
DOTween.Init(); DOTween.Init();
...@@ -280,14 +283,17 @@ namespace com.al_arcade.tf ...@@ -280,14 +283,17 @@ namespace com.al_arcade.tf
private void SetupAudioManager() private void SetupAudioManager()
{ {
var a = SSAudioManager.EnsureInstance(); var a = SSAudioManager.EnsureInstance();
if (sfxCorrect != null) a.sfxCorrect = sfxCorrect; if (sfxCorrect != null) a.sfxCorrect = sfxCorrect;
if (sfxWrong != null) a.sfxWrong = sfxWrong; if (sfxWrong != null) a.sfxWrong = sfxWrong;
if (sfxClick != null) a.sfxClick = sfxClick; if (sfxClick != null) a.sfxClick = sfxClick;
if (sfxVictory != null) a.sfxVictory = sfxVictory; if (sfxVictory != null) a.sfxVictory = sfxVictory;
if (sfxDefeat != null) a.sfxDefeat = sfxDefeat; if (sfxDefeat != null) a.sfxDefeat = sfxDefeat;
if (sfxWhoosh != null) a.sfxWhoosh = sfxWhoosh; if (sfxWhoosh != null) a.sfxWhoosh = sfxWhoosh;
if (sfxPop != null) a.sfxPop = sfxPop; if (sfxPop != null) a.sfxPop = sfxPop;
if (sfxSlam != null) a.sfxSlam = sfxSlam; if (sfxSlam != null) a.sfxSlam = sfxSlam;
} }
private void SetupParticleManager() private void SetupParticleManager()
......
...@@ -25,6 +25,16 @@ ...@@ -25,6 +25,16 @@
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.cinemachine": {
"version": "3.1.6",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.splines": "2.0.0",
"com.unity.modules.imgui": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": { "com.unity.collab-proxy": {
"version": "2.11.3", "version": "2.11.3",
"depth": 0, "depth": 0,
...@@ -150,6 +160,13 @@ ...@@ -150,6 +160,13 @@
}, },
"com.unity.searcher": { "com.unity.searcher": {
"version": "4.9.4", "version": "4.9.4",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.settings-manager": {
"version": "2.1.1",
"depth": 2, "depth": 2,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
...@@ -157,13 +174,24 @@ ...@@ -157,13 +174,24 @@
}, },
"com.unity.shadergraph": { "com.unity.shadergraph": {
"version": "17.3.0", "version": "17.3.0",
"depth": 1, "depth": 0,
"source": "builtin", "source": "builtin",
"dependencies": { "dependencies": {
"com.unity.render-pipelines.core": "17.3.0", "com.unity.render-pipelines.core": "17.3.0",
"com.unity.searcher": "4.9.3" "com.unity.searcher": "4.9.3"
} }
}, },
"com.unity.splines": {
"version": "2.8.2",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1",
"com.unity.modules.imgui": "1.0.0",
"com.unity.settings-manager": "1.0.3"
},
"url": "https://packages.unity.com"
},
"com.unity.test-framework": { "com.unity.test-framework": {
"version": "1.6.0", "version": "1.6.0",
"depth": 0, "depth": 0,
...@@ -205,6 +233,15 @@ ...@@ -205,6 +233,15 @@
"com.unity.modules.imgui": "1.0.0" "com.unity.modules.imgui": "1.0.0"
} }
}, },
"com.unity.visualeffectgraph": {
"version": "17.3.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.shadergraph": "17.3.0",
"com.unity.render-pipelines.core": "17.3.0"
}
},
"com.unity.visualscripting": { "com.unity.visualscripting": {
"version": "1.9.9", "version": "1.9.9",
"depth": 0, "depth": 0,
......
...@@ -3,10 +3,18 @@ ...@@ -3,10 +3,18 @@
--- !u!937362698 &1 --- !u!937362698 &1
VFXManager: VFXManager:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_IndirectShader: {fileID: 0} m_IndirectShader: {fileID: 7200000, guid: 84a17cfa13e40ae4082ef42714f0a81c, type: 3}
m_CopyBufferShader: {fileID: 0} m_CopyBufferShader: {fileID: 7200000, guid: 23c51f21a3503f6428b527b01f8a2f4e, type: 3}
m_SortShader: {fileID: 0} m_PrefixSumShader: {fileID: 7200000, guid: 783e0fdc1a277f54bb851fd2ceab1e7f, type: 3}
m_StripUpdateShader: {fileID: 0} m_SortShader: {fileID: 7200000, guid: ea257ca3cfb12a642a5025e612af6b2a, type: 3}
m_StripUpdateShader: {fileID: 7200000, guid: 8fa6c4009fe2a4d4486c62736fc30ad8, type: 3}
m_EmptyShader: {fileID: 4800000, guid: 33a2079f6a2db4c4eb2e44b33f4ddf6b, type: 3}
m_RenderPipeSettingsPath: m_RenderPipeSettingsPath:
m_FixedTimeStep: 0.016666668 m_FixedTimeStep: 0.016666668
m_MaxDeltaTime: 0.05 m_MaxDeltaTime: 0.05
m_MaxScrubTime: 30
m_MaxCapacity: 100000000
m_CompiledVersion: 7
m_RuntimeVersion: 39
m_RuntimeResources: {fileID: 11400000, guid: bc10b42afe3813544bffd38ae2cd893d, type: 2}
m_BatchEmptyLifetime: 300
...@@ -24,7 +24,7 @@ MonoBehaviour: ...@@ -24,7 +24,7 @@ MonoBehaviour:
m_MinSize: {x: 400, y: 112} m_MinSize: {x: 400, y: 112}
m_MaxSize: {x: 32384, y: 16192} m_MaxSize: {x: 32384, y: 16192}
vertical: 0 vertical: 0
controlID: 55382 controlID: 56820
draggingID: 0 draggingID: 0
--- !u!114 &2 --- !u!114 &2
MonoBehaviour: MonoBehaviour:
...@@ -153,7 +153,7 @@ MonoBehaviour: ...@@ -153,7 +153,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 112} m_MinSize: {x: 300, y: 112}
m_MaxSize: {x: 24288, y: 16192} m_MaxSize: {x: 24288, y: 16192}
vertical: 1 vertical: 1
controlID: 55383 controlID: 56821
draggingID: 0 draggingID: 0
--- !u!114 &4 --- !u!114 &4
MonoBehaviour: MonoBehaviour:
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 56} m_MinSize: {x: 300, y: 56}
m_MaxSize: {x: 24288, y: 8096} m_MaxSize: {x: 24288, y: 8096}
vertical: 0 vertical: 0
controlID: 55384 controlID: 56822
draggingID: 0 draggingID: 0
--- !u!114 &5 --- !u!114 &5
MonoBehaviour: MonoBehaviour:
...@@ -250,10 +250,14 @@ MonoBehaviour: ...@@ -250,10 +250,14 @@ MonoBehaviour:
m_TreeViewState: m_TreeViewState:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: m_SelectedIDs:
- m_Data: 285404 - m_Data: 285768
m_LastClickedID: m_LastClickedID:
m_Data: 285404 m_Data: 285768
m_ExpandedIDs: m_ExpandedIDs:
- m_Data: -499186
- m_Data: -498450
- m_Data: -497626
- m_Data: -496970
- m_Data: -490102 - m_Data: -490102
- m_Data: -489606 - m_Data: -489606
- m_Data: -489136 - m_Data: -489136
...@@ -340,8 +344,8 @@ MonoBehaviour: ...@@ -340,8 +344,8 @@ MonoBehaviour:
y: 0 y: 0
width: 549.6 width: 549.6
height: 343.2 height: 343.2
m_MinSize: {x: 202, y: 226} m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4002, y: 4026} m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 8} m_ActualView: {fileID: 8}
m_Panes: m_Panes:
- {fileID: 8} - {fileID: 8}
...@@ -1204,7 +1208,7 @@ MonoBehaviour: ...@@ -1204,7 +1208,7 @@ MonoBehaviour:
m_SkipHidden: 0 m_SkipHidden: 0
m_SearchArea: 1 m_SearchArea: 1
m_Folders: m_Folders:
- Assets/SFX - Assets/ScienceStreet/CS/Scripts
m_Globs: [] m_Globs: []
m_ProductIds: m_ProductIds:
m_AnyWithAssetOrigin: 0 m_AnyWithAssetOrigin: 0
...@@ -1214,7 +1218,7 @@ MonoBehaviour: ...@@ -1214,7 +1218,7 @@ MonoBehaviour:
m_ViewMode: 1 m_ViewMode: 1
m_StartGridSize: 59 m_StartGridSize: 59
m_LastFolders: m_LastFolders:
- Assets/SFX - Assets/ScienceStreet/CS/Scripts
m_LastFoldersGridSize: 59 m_LastFoldersGridSize: 59
m_LastProjectPath: D:\saad work\Unity project\SSbookminigames\My project m_LastProjectPath: D:\saad work\Unity project\SSbookminigames\My project
m_LockTracker: m_LockTracker:
...@@ -1223,9 +1227,9 @@ MonoBehaviour: ...@@ -1223,9 +1227,9 @@ MonoBehaviour:
m_FolderTreeState: m_FolderTreeState:
scrollPos: {x: 0, y: 748.4} scrollPos: {x: 0, y: 748.4}
m_SelectedIDs: m_SelectedIDs:
- m_Data: 266844 - m_Data: 285818
m_LastClickedID: m_LastClickedID:
m_Data: 266844 m_Data: 285818
m_ExpandedIDs: m_ExpandedIDs:
- m_Data: 0 - m_Data: 0
- m_Data: 54580 - m_Data: 54580
...@@ -1243,6 +1247,7 @@ MonoBehaviour: ...@@ -1243,6 +1247,7 @@ MonoBehaviour:
- m_Data: 54604 - m_Data: 54604
- m_Data: 54606 - m_Data: 54606
- m_Data: 54608 - m_Data: 54608
- m_Data: 55040
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
...@@ -1317,9 +1322,9 @@ MonoBehaviour: ...@@ -1317,9 +1322,9 @@ MonoBehaviour:
m_ResourceFile: m_ResourceFile:
m_ListAreaState: m_ListAreaState:
m_SelectedInstanceIDs: m_SelectedInstanceIDs:
- m_Data: 285404 - m_Data: 285768
m_LastClickedInstanceID: 285404 m_LastClickedInstanceID: 285768
m_HadKeyboardFocusLastEvent: 1 m_HadKeyboardFocusLastEvent: 0
m_ExpandedInstanceIDs: m_ExpandedInstanceIDs:
- m_Data: 55308 - m_Data: 55308
- m_Data: 82478 - m_Data: 82478
...@@ -1468,7 +1473,7 @@ MonoBehaviour: ...@@ -1468,7 +1473,7 @@ MonoBehaviour:
m_DynamicPanelBehavior: 0 m_DynamicPanelBehavior: 0
m_LockTracker: m_LockTracker:
m_IsLocked: 0 m_IsLocked: 0
m_LastSelectedObjectID: 285332 m_LastSelectedObjectID: 285768
--- !u!114 &14 --- !u!114 &14
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
...@@ -1526,8 +1531,8 @@ MonoBehaviour: ...@@ -1526,8 +1531,8 @@ MonoBehaviour:
y: 0 y: 0
width: 363.19995 width: 363.19995
height: 716.8 height: 716.8
m_MinSize: {x: 276, y: 76} m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4001, y: 4026} m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 16} m_ActualView: {fileID: 16}
m_Panes: m_Panes:
- {fileID: 16} - {fileID: 16}
...@@ -1578,7 +1583,7 @@ MonoBehaviour: ...@@ -1578,7 +1583,7 @@ MonoBehaviour:
m_ControlHash: -371814159 m_ControlHash: -371814159
m_PrefName: Preview_InspectorPreview m_PrefName: Preview_InspectorPreview
m_LastInspectedObjectInstanceID: -1 m_LastInspectedObjectInstanceID: -1
m_LastVerticalScrollValue: 0 m_LastVerticalScrollValue: 463
m_GlobalObjectId: m_GlobalObjectId:
m_InspectorMode: 0 m_InspectorMode: 0
m_LockTracker: m_LockTracker:
......
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