public void SetPlayerInfo(PlayerUnitInfo playerInfo)
    {
        _playerInfo = playerInfo;
        SetInfo(_playerInfo);

        List <ItemData> combos = GameInformation.instance.GetComboInfo(playerInfo.id);

        foreach (ItemData combo in combos)
        {
            MovementAndAttackMapping.SetAttack(combo, gameObject);
        }
    }
    private void SetInfo(UnitInfo info)
    {
        this.info = info;

        health          = info.maxHealth;
        gameObject.name = info.name;
        GetComponent <SpriteRenderer>().sprite = info.unitSprite;

        MovementAndAttackMapping.SetMovement(info.movementType, gameObject);
        MovementAndAttackMapping.SetAttack(info.WeaponMain, gameObject);
        MovementAndAttackMapping.SetAttack(info.WeaponSecondary, gameObject);

        GetComponent <Unit>().InitAnimator(info);
    }