public void Update()
 {
     if (currentHealth <= 0)
     {
         currentHealth = 0;
         ResourceUI.AddGPoints(points);
         Destroy(gameObject);
     }
 }