Commit 50ffc2b7 authored by Tobias's avatar Tobias
Browse files

Customer Sounds

parent 42688b9d
fileFormatVersion: 2
guid: 2cdc087867a94f948a66639756a8a3e3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -182,8 +182,14 @@ public class CustomerBehaviour : MonoBehaviour
// Wrong Beer
_playerActor.AudioSource.PlayOneShot(_customerSounds.GetHappyClip(), 0.2f);
_customerBar.addPercentageOfSlider(-0.3f);
Destroy(other.gameObject);
}
}
}else if (other.collider.gameObject.CompareTag("Projectile"))
{
_playerActor.AudioSource.PlayOneShot(_customerSounds.GetSadClip(), 0.2f);
_customerBar.addPercentageOfSlider(0.3f);
Destroy(other.gameObject);
}
}
}
......@@ -52,6 +52,8 @@ public class CustomerBar : MonoBehaviour
{
_currentTime += durationTime * perc;
customerSlider.value = _currentTime / durationTime * 100.0f;
if (customerSlider.value < 0)
customerSlider.value = 0f;
}
......
fileFormatVersion: 2
guid: 0e1551d854a4a8247877583fdb2fba9a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2a0fa2311110f744ea309bab75e9f600
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 696677aa871f3804781570d7d57a564c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Supports Markdown
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