So basicaly this is the line that is causeing problems:
LivesToBeShown = dummy.GetComponent
So basicaly this is the line that is causeing problems:
LivesToBeShown = dummy.GetComponent
This line is unreliable:
LivesToBeShown = dummy.GetComponent();
Try changing it to :
LivesToBeShown = dummy.GetComponent<Text>();