void Update()
 {
     if (enemyHealth <= 0)
     {
         if (playerTr.GetComponent <MoveRotation1>().isSurvival == false)
         {
             uiManager.GetGold(50);
             sManager.enemyMeleeList.RemoveAt(erNum);
             sManager.DestroyedMeleeEnemy(erNum);
             gManager.killCount++;
             moveAgent.ItemDrop();
         }
         else if (playerTr.GetComponent <MoveRotation1>().isSurvival == true)
         {
             gsManager.enemyList.RemoveAt(erNum);
             gsManager.SurvivalDestroyedEnemy(erNum);
             gManager.killCount++;
             moveAgent.ItemDrop();
         }
         Destroy(gameObject);
     }
 }
 void Update()
 {
     if (enemyHealth <= 0)
     {
         if (playerTr.GetComponent <MoveRotation1>().isSurvival == false)
         {
             sManager.enemyList.RemoveAt(erNum);
             sManager.DestroyedEnemy(erNum);
             uiManager.GetGold(50);
             gManager.killCount++;
             moveAgent.ItemDrop();
         }
         if (erAttack.go != null)
         {
             Destroy(erAttack.go);
             Destroy(gameObject);
         }
         else
         {
             Destroy(gameObject);
         }
     }
 }