mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 10:30:59 +00:00
appliqué shake sur Earthquake
This commit is contained in:
parent
038748f96d
commit
03fc23ed5c
@ -57,7 +57,13 @@ public class Earthquake : MonoBehaviour {
|
|||||||
{
|
{
|
||||||
isExploding = true;
|
isExploding = true;
|
||||||
StartCoroutine(Explode());
|
StartCoroutine(Explode());
|
||||||
Instantiate(ExplosionParticle);
|
Instantiate(ExplosionParticle);
|
||||||
|
var camera = GameObject.Find("Main Camera");
|
||||||
|
if (camera)
|
||||||
|
{
|
||||||
|
var shaker = camera.GetComponent<CameraShake>();
|
||||||
|
if (shaker) shaker.shakeTimeAmount = 2.0f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator Explode()
|
IEnumerator Explode()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user