private void SetHitArea(Transform carrier, GameObject hitArea)
        {
            GameObject area = Instantiate(hitArea, carrier.position, hitArea.transform.rotation, carrier);

            this.hitArea = area.GetComponentInChildren <TargetDetector>();
            this.hitArea.Initialize(carrier.tag);
        }
 private void Initialize()
 {
     detectorInstance = Instantiate(areaPrefab, transform);
     detectorInstance.Initialize(data.source.tag);
     stats = data.source.GetComponent <CharacterStats>();
 }