Added particle and bug fixes #437
|
@ -88,6 +88,8 @@ public class GameManager : Script
|
|||
Input.SetMouseCentering(true);
|
||||
Application.IsCursorVisible = false;
|
||||
Application.FixDeltaTime = Time.DefaultFixDeltaTime;
|
||||
|
||||
AudioHandler.audioClipHandlers["SFXItemScore"] = Audio.CreateAudioClip("event:/Music/stingers/item_scored");
|
||||
}
|
||||
|
||||
protected override void start()
|
||||
|
@ -244,6 +246,9 @@ public class GameManager : Script
|
|||
if (currMultiplierCombo < maxMultiplierCombo)
|
||||
currMultiplierCombo += 1;
|
||||
|
||||
Audio.SetParameter("Multiplier", currMultiplierCombo);
|
||||
AudioHandler.audioClipHandlers["SFXItemScore"].Play();
|
||||
|
||||
MultiplierTextFx fx = multiplierText.GetScript<MultiplierTextFx>();
|
||||
if (fx)
|
||||
{
|
||||
|
|
|
@ -6,14 +6,12 @@ public class ScoringZone : Script
|
|||
|
||||
protected override void awake()
|
||||
{
|
||||
AudioHandler.audioClipHandlers["SFXItemScore"] = Audio.CreateAudioClip("event:/Music/stingers/item_scored");
|
||||
}
|
||||
|
||||
protected override void onTriggerEnter(CollisionInfo info)
|
||||
{
|
||||
if (GameManager.Instance && info.GameObject.GetScript<Item>() && info.GameObject.IsActiveSelf && !info.GameObject.GetComponent<Collider>().GetCollisionShape(0).IsTrigger )
|
||||
{
|
||||
AudioHandler.audioClipHandlers["SFXItemScore"].Play();
|
||||
GameManager.Instance.Score += info.GameObject.GetScript<Item>().Score * GameManager.Instance.currMultiplierCombo;
|
||||
GameManager.Instance.ItemScored();
|
||||
info.GameObject.SetActive(false);
|
||||
|
|
Loading…
Reference in New Issue