void explode() { //destroy obj Destroy(this.gameObject); //instantate explosion ExplosionController ec = explosionImage.GetComponent <ExplosionController>(); ec.init(myCreator, isDamagingExplosion); Instantiate(explosionImage, myTransform.position, Quaternion.identity); //shake camera if (isScreenShaker) { CameraController cc = Camera.main.GetComponent <CameraController> (); cc.shakeCamera(); } }