// Use this for initialization
 void Start()
 {
     collisionObjects = new List <GameObject>();
     parent           = GameObject.FindGameObjectsWithTag(SwordSc.tagParent)[0];
     swordTr          = parent.GetComponent <SwordTriggerable>();//TODO ON ES FA SERVIR EL SWORD TRIGGERABLE AQUI?????
     //myAnim = GetComponent<Animator>();
     //myAnim.SetBool("isAttacking", true);
 }
    public override void Initialize(GameObject obj)
    {
        if (swordTriggerable == null)
        {
            //GameObject player = GameObject.FindGameObjectWithTag(playerTag).transform.root.gameObject;
            swordTriggerable = obj.GetComponent <SwordTriggerable>();
            //No funciona pq esta disable la espada
            espadaGO = obj.transform.Find("Espada").gameObject;
            //espadaGO = GameObject.FindGameObjectsWithTag(espadaGameObjectTag)[0];
            //posiblie solucion al disable
            swordTriggerable.swordGO = espadaGO;

            swordController = espadaGO.GetComponentInChildren <SwordController>();
            swordTriggerable.swordController = swordController;

            Sword = swordController.SwordSc;
            swordTriggerable.sword = Sword;
        }
    }