public void connectToScript(Character target) { // Debug.Log(target.CharacterName); belongsTo = target; playerHealthScript = target.CharacterGameObject.GetComponentInChildren<PlayerHealth>(); playerHealthScript.setConnection(target.HealthController); }