public void Death() { isDeath2 = true; Debug.Log("DeathMob"); GameObject.Find("GameManager").GetComponent <SpawnMobs>().mobsCount--; ed.Start1(); rotatingSpeed = 0; isDeath = true; player1.AddExp(expGive); CancelInvoke("CheckShoot"); CancelInvoke("CheckRotate"); StopCoroutine(Blid1(0)); isShoot = false; spawnmob.Check12(); Destroy(gameObject, 1.2f); Invoke("Explode", 1.1f); this.enabled = false; }