// Update is called once per frame
 void Update()
 {
     // Check to see if visibility status needs to be updated
     if (globalBehavior.getWaypointVisibilityStatus() != visibility)
     {
         if (visibility) // Turn invisible
         {
             visibility = false;
             GetComponent <SpriteRenderer>().color = new Color(1f, 1f, 1f, 0);
         }
         else // Show updated waypoint
         {
             visibility = true;
             GetComponent <SpriteRenderer>().color = new Color(1f, 1f, 1f, (1f - timeHit * .25f));
         }
     }
 }