public static void CreateFloatingText(string text, Transform location, float distance, bool crit)
    {
        CritFloatingText instance = Instantiate(popupText);

        instance.transform.SetParent(canvas.transform, false);
        instance.transform.position = screenPosition;
        // instance.SetColor(crit);
        instance.SetText(text);
        instance.SetSize(distance);
    }
 public static void Initalize()
 {
     canvas = GameObject.Find("Canvas");
     if (!popupText)
     {
         // Debug.Log("gotthisfar1");
         popupText = Resources.Load <CritFloatingText>("Prefabs/CritTextParent");
         //  Debug.Log("gotthisfar");
     }
 }