Esempio n. 1
0
        void Dead()
        {
            isDead = true;

            StartCoroutine(Camera.main.gameObject.GetComponent <CameraShake>().Shake());

            Destroy(Instantiate(deadEffect, transform.position, Quaternion.identity), 0.7f);
            StopPlayer();
            gm.CallGameOver();
        }