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