// Update is called once per frame
 void Update()
 {
     if (IsPlayer)
     {
         if (PlayerCharge == null)
         {
             PlayerCharge = GameObject.FindGameObjectWithTag("Player").GetComponent <Charge>();
         }
         else
         {
             float floatText = Mathf.Round((PlayerCharge.GetCooldownTime() - PlayerCharge.GetCooldownTimer()) * 100) / 100;
             ChargeText.text = "" + floatText;
         }
     }
 }