public static int health = 100;
public GameObject go;
public PlayerLogic PlayerLogic;
private int health;
void Start()
{
PlayerLogic = go.GetComponent<PlayerLogic>();
}
void Update()
{
health = PlayerLogic.health;
}