// Update is called once per frame
 void Update()
 {
     if (!iconsCallibrated && UIScript.staticObject != null)
     {
         UIScript.CallibrateIcons(type);
     }
     for (int i = 0; i < abilitiesCode.Length; i++)
     {
         if (Input.GetKeyDown(abilitiesCode[i]))
         {
             abilities[i].Activate();
         }
     }
 }